* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #1e3a2c #06100b;
}

body {
    font-family: "Inter", sans-serif;
    background: #06100b;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    color: #e2f5ea;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #1e3a2c #06100b;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 8px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: #06100b;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background-color: #1e3a2c;
    border-radius: 999px;
    border: 2px solid #06100b;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background-color: #10b981;
}

.tech-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(circle at 12% 20%, rgba(16, 185, 129, 0.18), transparent 42%),
        radial-gradient(circle at 88% 82%, rgba(52, 211, 153, 0.14), transparent 40%),
        radial-gradient(circle at 50% 4%, rgba(250, 204, 21, 0.08), transparent 38%),
        linear-gradient(180deg, #050b08 0%, #0a1712 100%);
}

.tech-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(16, 185, 129, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.07) 1px, transparent 1px);
    background-size: 46px 46px;
    opacity: 0.55;
}

.floating-elements {
    position: absolute;
    inset: 0;
}

.floating-elements span {
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, rgba(16, 185, 129, 0) 70%);
    animation: float 16s ease-in-out infinite;
    pointer-events: none;
}

.floating-elements span:nth-child(1) {
    width: 140px;
    height: 140px;
    top: 8%;
    left: 8%;
}

.floating-elements span:nth-child(2) {
    width: 170px;
    height: 170px;
    right: 12%;
    top: 55%;
    animation-delay: 2.5s;
}

.floating-elements span:nth-child(3) {
    width: 120px;
    height: 120px;
    left: 23%;
    bottom: 12%;
    animation-delay: 4.5s;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.24) 0%, rgba(250, 204, 21, 0) 70%);
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-18px);
    }
}

.auth-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-main {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    padding-bottom: 88px;
}

.auth-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    background: rgba(6, 16, 11, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid #1e3a2c;
    padding: 1.1rem 1.5rem;
}

.auth-footer__inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.auth-footer .landing-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #eafff3;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
}

.auth-footer .landing-brand img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.auth-footer__inner p {
    margin: 0;
    color: #5f8570;
    font-size: 0.83rem;
}

.auth-footer__inner p a {
    color: #34d399;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer__inner p a:hover {
    color: #6ee7b7;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .auth-footer__inner {
        flex-direction: column;
        text-align: center;
    }
}

.auth-wrapper {
    width: 100%;
    max-width: 500px;
}

.auth-form .card {
    background: #0c1a14;
    border: 1px solid #1e3a2c;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(16, 185, 129, 0.04);
    overflow: hidden;
}

.auth-form .card::before {
    content: "";
    display: block;
    height: 6px;
    background: linear-gradient(90deg, #064e3b 0%, #10b981 52%, #facc15 100%);
}

.card-body {
    padding: 2.4rem 2.2rem;
}

.brand-section {
    text-align: center;
    margin-bottom: 1.1rem;
}

.brand-section img {
    width: 95px;
    height: auto;
    margin-bottom: 0.85rem;
}

.brand-tagline {
    margin: 0;
    color: #8fb9a3;
    font-size: 0.95rem;
    font-weight: 500;
}

.auth-header {
    text-align: center;
    margin-bottom: 1rem;
}

.auth-header h2 {
    color: #eafff3;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.text-accent {
    color: #facc15;
}

.auth-header p {
    margin: 0;
    color: #7fa895;
    font-size: 0.93rem;
}

.auth-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    margin-bottom: 1.35rem;
}

.auth-highlights span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.36rem 0.62rem;
    border-radius: 999px;
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.25);
    color: #fde68a;
    font-size: 0.78rem;
    font-weight: 600;
}

.auth-highlights i {
    font-size: 0.9rem;
}

.custom-message .alert {
    border-radius: 10px;
    margin-bottom: 1rem;
    padding: 0.85rem 0.9rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.custom-message .alert-danger {
    background: rgba(127, 29, 29, 0.25);
    border-color: #7f1d1d;
    color: #fca5a5;
}

.custom-message .alert-success {
    background: rgba(6, 78, 59, 0.35);
    border-color: #10b981;
    color: #6ee7b7;
}

#loginForm .form-floating {
    margin-bottom: 1rem;
}

#loginForm .password-field .form-control {
    padding-right: 2.9rem !important;
}

#loginForm .password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 2.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    z-index: 5;
    color: #7fa895;
    font-size: 1.05rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

#loginForm .password-toggle:hover {
    color: #34d399;
}

#loginForm .password-toggle:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: -2px;
    border-radius: 6px;
}

#loginForm .form-floating .form-control {
    background: #0a1512 !important;
    border: 1px solid #234233 !important;
    border-radius: 11px !important;
    color: #eafff3 !important;
    height: 58px !important;
    font-size: 0.95rem !important;
    padding: 1.55rem 0.9rem 0.55rem 0.9rem !important;
    line-height: 1.25 !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

#loginForm .form-floating .form-control:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22) !important;
    color: #eafff3 !important;
}

#loginForm .form-floating .form-control::placeholder,
#loginForm .form-floating .form-control::-webkit-input-placeholder,
#loginForm .form-floating .form-control::-moz-placeholder,
#loginForm .form-floating .form-control:-ms-input-placeholder {
    color: transparent !important;
    opacity: 0 !important;
}

#loginForm .form-floating label {
    color: #7fa895 !important;
    font-size: 0.92rem !important;
    padding: 0.95rem 0.9rem !important;
    height: 100% !important;
}

#loginForm .form-floating .form-control:focus ~ label,
#loginForm .form-floating .form-control:not(:placeholder-shown) ~ label {
    color: #34d399 !important;
    font-weight: 600 !important;
    transform: scale(0.82) translateY(-0.42rem) translateX(0.05rem) !important;
    background: #0a1512 !important;
    height: auto !important;
    padding: 0 0.35rem !important;
    top: 0.42rem !important;
    left: 0.55rem !important;
}

#loginForm .form-floating .form-control:focus ~ label::after,
#loginForm .form-floating .form-control:not(:placeholder-shown) ~ label::after {
    background-color: #0a1512 !important;
}

#loginForm .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

#loginForm .form-check-label {
    color: #8fb9a3 !important;
    font-size: 0.89rem !important;
}

#loginForm .form-check-input {
    border-color: #3a5a49 !important;
    background-color: #0a1512 !important;
}

#loginForm .form-check-input:checked {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
}

#loginForm .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22) !important;
}

.forgot-password {
    color: #34d399;
    text-decoration: none;
    font-size: 0.89rem;
    font-weight: 600;
}

.forgot-password:hover {
    color: #6ee7b7;
}

.btn-submit {
    width: 100%;
    border: none;
    border-radius: 11px;
    background: linear-gradient(90deg, #064e3b 0%, #10b981 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.95rem 1rem;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.auth-signup-prompt {
    text-align: center;
    margin: 1rem 0 0;
    color: #7fa895;
    font-size: 0.89rem;
}

.auth-signup-prompt a {
    color: #facc15;
    font-weight: 600;
    text-decoration: none;
}

.auth-signup-prompt a:hover {
    color: #fde68a;
    text-decoration: underline;
}

.loader-bg {
    background: #06100b;
}

.loader-fill {
    background: linear-gradient(90deg, #059669 0%, #34d399 100%);
}

@media (max-width: 576px) {
    .auth-main {
        padding: 14px;
        padding-bottom: 132px;
    }

    .auth-footer {
        padding: 0.9rem 1.1rem;
    }

    .card-body {
        padding: 1.8rem 1.1rem;
    }

    .auth-header h2 {
        font-size: 1.4rem;
    }

    .auth-highlights {
        gap: 0.35rem;
    }

    .auth-highlights span {
        font-size: 0.74rem;
    }
}

/* ======================= */
/* Sign Up Form            */
/* ======================= */

.auth-wrapper.v3-signup {
    max-width: 560px;
}

#signupForm .form-floating {
    margin-bottom: 1rem;
}

#signupForm .form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

/* ---- Address selects (Select2) ---- */

#signupForm .select2-field {
    margin-bottom: 1rem;
}

#signupForm .select2-field > label {
    display: block;
    color: #8fb9a3;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

#signupForm .select2-field > label span {
    color: #f87171;
}

#signupForm .select2-container--default .select2-selection--single {
    height: 58px !important;
    background: #0a1512 !important;
    border: 1px solid #234233 !important;
    border-radius: 11px !important;
    display: flex;
    align-items: center;
    padding: 0 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#signupForm .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #eafff3;
    line-height: normal;
    padding: 0;
    font-size: 0.92rem;
}

#signupForm .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #7fa895;
}

#signupForm .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 56px;
    right: 8px;
}

#signupForm .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #34d399 transparent transparent transparent;
}

#signupForm .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #34d399 transparent;
}

#signupForm .select2-container--default.select2-container--focus .select2-selection--single,
#signupForm .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
    outline: none;
}

#signupForm .select2-container--default.select2-container--disabled .select2-selection--single {
    background: #0a1512 !important;
    opacity: 0.55;
    cursor: not-allowed;
}

.select2-dropdown-dark {
    background: #0a1512 !important;
    border: 1px solid #234233 !important;
    border-radius: 10px !important;
    overflow: hidden;
    z-index: 3000 !important;
}

.select2-dropdown-dark .select2-search--dropdown {
    padding: 0.5rem;
    background: #0a1512;
}

.select2-dropdown-dark .select2-search__field {
    background: #0f1e18 !important;
    border: 1px solid #234233 !important;
    border-radius: 8px !important;
    color: #eafff3 !important;
    padding: 0.45rem 0.6rem !important;
    outline: none !important;
}

.select2-dropdown-dark .select2-results__options {
    max-height: 240px;
    scrollbar-width: thin;
    scrollbar-color: #1e3a2c #0a1512;
}

.select2-dropdown-dark .select2-results__options::-webkit-scrollbar {
    width: 8px;
}

.select2-dropdown-dark .select2-results__options::-webkit-scrollbar-thumb {
    background-color: #1e3a2c;
    border-radius: 999px;
}

.select2-dropdown-dark .select2-results__option {
    color: #cfe9dc;
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
}

.select2-dropdown-dark .select2-results__message {
    color: #5f8973;
    padding: 0.55rem 0.9rem;
}

.select2-dropdown-dark .select2-results__option--highlighted[aria-selected] {
    background: #10b981 !important;
    color: #06100b !important;
}

.select2-dropdown-dark .select2-results__option[aria-selected="true"] {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
}

#signupForm .password-field .form-control {
    padding-right: 2.9rem !important;
}

#signupForm .password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 2.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    z-index: 5;
    color: #7fa895;
    font-size: 1.05rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

#signupForm .password-toggle:hover {
    color: #34d399;
}

#signupForm .password-toggle:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: -2px;
    border-radius: 6px;
}

#signupForm .form-floating .form-control,
#signupForm .form-floating .form-select {
    background: #0a1512 !important;
    border: 1px solid #234233 !important;
    border-radius: 11px !important;
    color: #eafff3 !important;
    height: 58px !important;
    font-size: 0.95rem !important;
    padding: 1.55rem 0.9rem 0.55rem 0.9rem !important;
    line-height: 1.25 !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

#signupForm .form-floating .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2334d399' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.9rem center !important;
    background-size: 16px 12px !important;
}

#signupForm .form-floating .form-select option {
    background: #0a1512;
    color: #eafff3;
}

#signupForm .form-floating .form-control:focus,
#signupForm .form-floating .form-select:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22) !important;
    color: #eafff3 !important;
}

#signupForm .form-floating .form-control.is-invalid,
#signupForm .form-floating .form-select.is-invalid {
    border-color: #f87171 !important;
}

#signupForm .form-floating .form-control::placeholder,
#signupForm .form-floating .form-control::-webkit-input-placeholder,
#signupForm .form-floating .form-control::-moz-placeholder,
#signupForm .form-floating .form-control:-ms-input-placeholder {
    color: transparent !important;
    opacity: 0 !important;
}

#signupForm .form-floating label {
    color: #7fa895 !important;
    font-size: 0.92rem !important;
    padding: 0.95rem 0.9rem !important;
    height: 100% !important;
}

#signupForm .form-floating .form-control:focus ~ label,
#signupForm .form-floating .form-control:not(:placeholder-shown) ~ label,
#signupForm .form-floating .form-select ~ label {
    color: #34d399 !important;
    font-weight: 600 !important;
    transform: scale(0.82) translateY(-0.42rem) translateX(0.05rem) !important;
    background: #0a1512 !important;
    height: auto !important;
    padding: 0 0.35rem !important;
    top: 0.42rem !important;
    left: 0.55rem !important;
}

#signupForm .form-floating .form-control:focus ~ label::after,
#signupForm .form-floating .form-control:not(:placeholder-shown) ~ label::after,
#signupForm .form-floating .form-select ~ label::after {
    background-color: #0a1512 !important;
}

#signupForm .field-hint {
    display: block;
    margin: -0.55rem 0 1rem;
    color: #5f8973;
    font-size: 0.78rem;
}

#signupForm .password-strength {
    display: flex;
    gap: 0.3rem;
    margin: -0.6rem 0 1rem;
}

#signupForm .password-strength span {
    height: 4px;
    flex: 1;
    border-radius: 999px;
    background: #1e3a2c;
    transition: background 0.25s ease;
}

#signupForm .password-strength.weak span:nth-child(1) {
    background: #f87171;
}

#signupForm .password-strength.medium span:nth-child(1),
#signupForm .password-strength.medium span:nth-child(2) {
    background: #facc15;
}

#signupForm .password-strength.strong span {
    background: #34d399;
}

#signupForm .form-terms {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 1.3rem;
}

#signupForm .form-terms .form-check-input {
    margin-top: 0.2rem;
    border-color: #3a5a49 !important;
    background-color: #0a1512 !important;
    flex-shrink: 0;
}

#signupForm .form-terms .form-check-input:checked {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
}

#signupForm .form-terms .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22) !important;
}

#signupForm .form-terms label {
    color: #8fb9a3 !important;
    font-size: 0.87rem !important;
    line-height: 1.4;
}

#signupForm .form-terms label a {
    color: #34d399;
    font-weight: 600;
    text-decoration: none;
}

#signupForm .form-terms label a:hover {
    color: #6ee7b7;
    text-decoration: underline;
}

@media (max-width: 576px) {
    #signupForm .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
