/* Auth split-screen — FetaLinks brand */
:root {
    --auth-primary: #004D40;
    --auth-teal: #2DD4BF;
    --auth-teal-link: #0D9488;
    --auth-amber: #F59E0B;
    --auth-amber-hover: #D97706;
    --auth-canvas: #F4F6FB;
    --auth-ink: #0F172A;
    --auth-muted: #94A3B8;
    --auth-label: #334155;
    --auth-border: #E2E8F0;
}

body.auth-page,
body {
    background: var(--auth-canvas);
    overflow-x: hidden;
    font-family: "Inter", "Roboto", sans-serif;
    padding: 0 !important;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--auth-ink);
}

.auth-split {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.auth-form-pane {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem 1.25rem;
    background: var(--auth-canvas);
    min-height: 100vh;
}

.auth-form-pane::before,
.auth-form-pane::after {
    content: "";
    flex: 1 1 0;
    min-height: 0.75rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 24px;
    padding: 2rem 1.75rem 1.75rem;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

.auth-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 auto 1.1rem;
    border-radius: 12px;
    background: var(--auth-amber);
    color: #fff;
    font-size: 1.15rem;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.35);
}

.auth-mark:hover {
    color: #fff;
    background: var(--auth-amber-hover);
}

.auth-title {
    margin: 0;
    text-align: center;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--auth-ink);
}

.auth-subtitle {
    margin: 0.4rem auto 1.35rem;
    max-width: 280px;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--auth-muted);
}

.auth-card h2,
.auth-card h3,
.auth-card h4 {
    margin: 0 0 0.75rem;
    text-align: center;
    font-weight: 700;
    color: var(--auth-ink);
}

.auth-card hr {
    border: 0;
    border-top: 1px solid var(--auth-border);
    margin: 1.1rem 0;
}

.auth-field {
    margin-bottom: 0.9rem;
}

.auth-field label,
.auth-card .form-label,
.auth-card .form-group > label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--auth-label);
}

.auth-input {
    position: relative;
}

.auth-input > i,
.auth-input > .fa,
.auth-input > .fas,
.auth-input > .far {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-amber);
    font-size: 0.82rem;
    pointer-events: none;
    z-index: 1;
}

.auth-card .form-control,
.auth-card .form-select,
.auth-input input,
.auth-input select {
    width: 100%;
    height: 44px;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    padding: 0.45rem 0.95rem;
    font-size: 0.9rem;
    color: var(--auth-ink);
    background: #fff;
    box-shadow: none;
}

.auth-card .auth-input .form-control,
.auth-card .auth-input .form-select,
.auth-card .auth-input input,
.auth-card .auth-input select {
    padding-left: 2.5rem;
}

.auth-page .auth-card .form-control:focus,
.auth-page .auth-card .form-control:focus-visible,
.auth-page .auth-card .form-select:focus,
.auth-page .auth-card .form-select:focus-visible,
.auth-page .auth-card .auth-input input:focus,
.auth-page .auth-card .auth-input select:focus {
    border-color: #F59E0B !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18) !important;
    outline: none;
}

.auth-card .form-control::placeholder,
.auth-input input::placeholder {
    color: #CBD5E1;
}

.auth-card .form-check {
    margin: 0.15rem 0 0.85rem;
    font-size: 0.85rem;
    color: var(--auth-label);
}

.auth-submit {
    display: block;
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 12px;
    background: var(--auth-amber);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.38);
    transition: background 0.15s ease, transform 0.15s ease;
}

.auth-submit:hover,
.auth-submit:focus {
    background: var(--auth-amber-hover);
    color: #fff;
}

.auth-link {
    color: var(--auth-teal-link);
    font-weight: 600;
    text-decoration: none;
}

.auth-link:hover {
    color: var(--auth-primary);
    text-decoration: underline;
}

.auth-forgot {
    display: block;
    text-align: center;
    margin: 0.85rem 0 0.25rem;
    font-size: 0.85rem;
}

.auth-switch {
    text-align: center;
    margin-top: 0.85rem;
    font-size: 0.85rem;
    color: var(--auth-muted);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0 0.9rem;
    color: var(--auth-muted);
    font-size: 0.78rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}

.auth-google {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    background: #fff;
    color: var(--auth-ink);
    font-weight: 600;
    text-decoration: none;
}

.auth-google:hover {
    background: #F8FAFC;
    color: var(--auth-ink);
    border-color: #CBD5E1;
}

.auth-google i {
    margin-right: 0.45rem;
}

.auth-social {
    list-style: none;
    margin: 0;
    padding: 0;
}

.auth-otp {
    display: block;
    text-align: center;
    margin-top: 0.35rem;
    font-size: 0.82rem;
}

.auth-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    max-width: 420px;
    margin-top: 1.25rem;
    font-size: 0.75rem;
    color: var(--auth-muted);
}

.auth-footer a {
    color: var(--auth-teal-link);
    text-decoration: none;
}

.auth-lang-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.auth-brand-pane {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    background: var(--auth-primary);
    color: var(--auth-amber);
    min-height: 100vh;
    container-type: inline-size;
}

.auth-brand-inner {
    width: 100%;
    max-width: none;
    text-align: center;
}

.auth-brand-title {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.35rem, 6.4cqi, 3.4rem);
    font-weight: 700;
    line-height: 1.12;
    color: var(--auth-amber);
    white-space: nowrap;
}

.auth-brand-copy {
    margin: 2.25rem auto 0;
    max-width: 420px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #FDE68A;
}

.auth-app-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.auth-app-links img {
    height: 40px;
    width: auto;
}

.auth-card .alert {
    font-size: 0.82rem;
}

.auth-card .text-danger,
.auth-card .alert.text-danger {
    font-size: 0.75rem;
    margin-top: 0.3rem !important;
}

.social_buttons {
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    display: inline-block;
    text-decoration: none;
}

.bg-facebook {
    background-color: #1877F2;
}

.bg-google {
    background-color: #DB4437;
}

.error.alert {
    padding: 5px;
    font-size: 12px;
}

.custom-language-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.custom-language-list li {
    flex: 1 1 120px;
    border: 1px solid #b0b0b0;
    margin: 10px;
    border-radius: 7px;
}

.logo {
    width: 100px;
}

.logo-img {
    max-height: 100px;
}

@media (min-width: 992px) {
    .auth-split {
        height: 100vh;
        overflow: hidden;
    }

    .auth-form-pane,
    .auth-brand-pane {
        height: 100vh;
        min-height: 100vh;
        overflow-y: auto;
    }
}

@media (max-width: 991.98px) {
    .auth-split {
        flex-direction: column;
    }

    .auth-form-pane,
    .auth-brand-pane {
        min-height: auto;
        flex: none;
        width: 100%;
    }

    .auth-brand-pane {
        order: -1;
        min-height: 220px;
        padding: 2rem 1.5rem;
    }

    .auth-brand-title {
        font-size: clamp(1.15rem, 6.2cqi, 2.1rem);
        white-space: nowrap;
    }

    .auth-brand-copy {
        margin-top: 1rem;
        font-size: 0.85rem;
    }

    .auth-form-pane {
        padding: 1.5rem 1rem 1.25rem;
    }
}

.auth-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    margin: 0 0 1.15rem;
    padding: 0;
    list-style: none;
}

.auth-steps li {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--auth-muted);
    font-size: 0.72rem;
    font-weight: 600;
    min-width: 0;
}

.auth-steps li span:last-child {
    white-space: nowrap;
}

.auth-steps li + li::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--auth-border);
    flex: 0 0 auto;
}

.auth-steps .step-index {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--auth-border);
    background: #fff;
    font-size: 0.7rem;
    flex: 0 0 auto;
}

.auth-steps li.is-active,
.auth-steps li.is-done {
    color: var(--auth-ink);
}

.auth-steps li.is-active .step-index,
.auth-steps li.is-done .step-index {
    background: var(--auth-amber);
    border-color: var(--auth-amber);
    color: #fff;
}

.auth-steps li.is-done + li::before {
    background: var(--auth-amber);
}

.auth-recovery .auth-step[hidden] {
    display: none !important;
}

.auth-recovery .auth-step:not([hidden]) {
    animation: authStepIn 0.28s ease;
}

@keyframes authStepIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.recovery-lead {
    margin: 0 0 0.85rem;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--auth-label);
}

.recovery-hint {
    margin: -0.35rem 0 0.9rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--auth-muted);
}

.otp-boxes {
    display: flex;
    justify-content: space-between;
    gap: 0.4rem;
    margin: 0.15rem 0 0.85rem;
}

.otp-boxes input {
    flex: 1 1 0;
    min-width: 0;
    max-width: 52px;
    height: 52px;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    background: #fff;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--auth-ink);
    padding: 0;
}

.auth-page .otp-boxes input:focus {
    border-color: #F59E0B !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18) !important;
    outline: none;
}

.recovery-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.auth-text-btn {
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--auth-teal-link);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.auth-text-btn:hover:not(:disabled) {
    color: var(--auth-primary);
    text-decoration: underline;
}

.auth-text-btn:disabled {
    color: var(--auth-muted);
    cursor: default;
}

.auth-reveal {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--auth-muted);
    cursor: pointer;
}

.auth-input.has-reveal input {
    padding-right: 2.6rem;
}

.auth-recovery .auth-subtitle {
    max-width: none;
}

.auth-recovery .auth-switch {
    margin-bottom: 0;
}

.auth-recovery .alert {
    margin-bottom: 0.9rem;
}
