/* ============================================================
   ONLINEVET — AUTHENTICATION
   DR+D ANIMAL HEALTH & NUTRITION

   Used by:
   - Login
   - Register
   - Login with 2FA
   - Login with recovery code
   - Logout
   - Register confirmation
   - Resend email confirmation
   - Reset password
   - Reset password confirmation
   ============================================================ */


/* ============================================================
   LOCAL DR+D THEME
   _AuthLayout does not load site.css
   ============================================================ */

:root {
    --ov-charcoal: #171d1f;
    --ov-dark: #20282a;
    --ov-dark-soft: #293436;
    --ov-teal-dark: #007f86;
    --ov-teal: #08aeb3;
    --ov-aqua: #62d7d3;
    --ov-aqua-soft: #b9efec;
    --ov-yellow: #f4d72c;
    --ov-yellow-soft: #fff5a8;
    --ov-page: #e4f5f4;
    --ov-page-light: #eefafa;
    --ov-surface: #f0fafa;
    --ov-surface-light: #f7fcfc;
    --ov-white: #f8fafa;
    --ov-text: #172124;
    --ov-muted: #607274;
    --ov-border: #c5e5e3;
    --ov-border-strong: #91b9b7;
    --ov-danger: #dc3545;
    --ov-danger-soft: #fee2e2;
    --ov-shadow: 0 18px 50px rgba(0, 127, 134, 0.13);
    --ov-shadow-strong: 0 22px 60px rgba(23, 29, 31, 0.18);
}


/* ============================================================
   PAGE
   ============================================================ */

html {
    min-height: 100%;
}

body.auth-body {
    min-height: 100vh;
    margin: 0;
    background: radial-gradient( circle at 12% 12%, rgba(98, 215, 211, 0.28), transparent 28% ), radial-gradient( circle at 88% 84%, rgba(8, 174, 179, 0.16), transparent 30% ), linear-gradient( 145deg, var(--ov-page-light) 0%, var(--ov-page) 55%, var(--ov-aqua-soft) 135% );
    color: var(--ov-text);
}


/* ============================================================
   AUTH CONTAINER
   ============================================================ */

.auth-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 42px 20px;
    overflow: hidden;
}


    /* Decorative background detail */

    .auth-container::before {
        content: "";
        position: fixed;
        top: -180px;
        left: -180px;
        width: 420px;
        height: 420px;
        border: 1px solid rgba(8, 174, 179, 0.12);
        border-radius: 50%;
        pointer-events: none;
    }

    .auth-container::after {
        content: "";
        position: fixed;
        right: -130px;
        bottom: -170px;
        width: 360px;
        height: 360px;
        border: 1px solid rgba(0, 127, 134, 0.12);
        border-radius: 50%;
        pointer-events: none;
    }


/* ============================================================
   MAIN AUTH CARD
   ============================================================ */

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 470px;
    padding: 38px 38px 34px;
    overflow: hidden;
    border: 1px solid rgba(8, 174, 179, 0.22);
    border-radius: 22px;
    background: linear-gradient( 145deg, rgba(247, 252, 252, 0.97), rgba(240, 250, 250, 0.95) );
    box-shadow: var(--ov-shadow-strong);
    backdrop-filter: blur(12px);
}


    /* Turquoise brand strip */

    .auth-card::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 5px;
        background: linear-gradient( 90deg, var(--ov-teal-dark), var(--ov-teal), var(--ov-aqua), var(--ov-yellow) );
    }


    /* Subtle decorative glow */

    .auth-card::after {
        content: "";
        position: absolute;
        top: -85px;
        right: -85px;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        background: radial-gradient( circle, rgba(98, 215, 211, 0.16), transparent 70% );
        pointer-events: none;
    }


/* Wider registration card */

.auth-register-card {
    max-width: 600px;
}


/* ============================================================
   HEADER
   ============================================================ */

.auth-header {
    position: relative;
    z-index: 1;
    margin-bottom: 28px;
    text-align: center;
}


/* ============================================================
   HEADER ICON
   ============================================================ */

.auth-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 17px;
    border: 1px solid rgba(98, 215, 211, 0.42);
    border-radius: 18px;
    background: linear-gradient( 135deg, var(--ov-teal-dark), var(--ov-teal) 58%, var(--ov-aqua) );
    color: var(--ov-white);
    box-shadow: 0 12px 28px rgba(0, 127, 134, 0.23);
    font-size: 1.45rem;
}


    /* Yellow logo-inspired micro accent */

    .auth-icon::after {
        content: "";
        position: absolute;
        right: -4px;
        bottom: -4px;
        width: 13px;
        height: 13px;
        border: 3px solid var(--ov-surface-light);
        border-radius: 50%;
        background: var(--ov-yellow);
        box-shadow: 0 2px 5px rgba(23, 29, 31, 0.12);
    }


/* Danger version */

.auth-icon-danger {
    border-color: rgba(220, 53, 69, 0.25);
    background: linear-gradient( 135deg, var(--ov-danger), #b92c3c );
    color: var(--ov-white);
}

    .auth-icon-danger::after {
        background: var(--ov-yellow);
    }


/* ============================================================
   EYEBROW
   ============================================================ */

.auth-eyebrow {
    margin-bottom: 6px;
    color: var(--ov-teal-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}


/* ============================================================
   TITLE
   ============================================================ */

.auth-title {
    margin: 0 0 8px;
    color: var(--ov-charcoal);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
}


/* ============================================================
   SUBTITLE
   ============================================================ */

.auth-subtitle {
    max-width: 390px;
    margin: 0 auto;
    color: var(--ov-muted);
    font-size: 12px;
    line-height: 1.65;
}


/* ============================================================
   FORM
   ============================================================ */

.auth-form {
    position: relative;
    z-index: 1;
}

.auth-form-group {
    margin-bottom: 17px;
}


/* ============================================================
   LABELS
   ============================================================ */

.auth-label {
    display: block;
    margin-bottom: 6px;
    color: var(--ov-text);
    font-size: 11px;
    font-weight: 700;
}


/* ============================================================
   INPUT WRAPPER
   ============================================================ */

.auth-input-wrapper {
    position: relative;
}


/* ============================================================
   INPUT ICON
   ============================================================ */

.auth-input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    color: var(--ov-teal-dark);
    font-size: 0.88rem;
    pointer-events: none;
}


/* ============================================================
   INPUT
   ============================================================ */

.auth-input {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px 10px 41px;
    border: 1px solid var(--ov-border);
    border-radius: 12px;
    outline: none;
    background: rgba(247, 252, 252, 0.92);
    color: var(--ov-text);
    font-size: 12px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

    .auth-input:hover {
        border-color: var(--ov-border-strong);
    }

    .auth-input:focus {
        border-color: var(--ov-teal);
        background: var(--ov-surface-light);
        box-shadow: 0 0 0 0.2rem rgba(8, 174, 179, 0.13), 0 5px 15px rgba(0, 127, 134, 0.06);
    }

    .auth-input::placeholder {
        color: var(--ov-muted);
        opacity: 0.66;
    }


/* Inputs without icon */

.auth-input-no-icon {
    padding-left: 13px;
}


/* ============================================================
   VALIDATION
   ============================================================ */

.auth-validation-summary {
    margin-bottom: 18px;
    padding: 11px 13px;
    border-left: 3px solid var(--ov-danger);
    border-radius: 8px;
    background: var(--ov-danger-soft);
    color: var(--ov-danger);
    font-size: 10px;
    line-height: 1.5;
}

    .auth-validation-summary:empty {
        display: none;
    }

    .auth-validation-summary ul {
        margin: 0;
        padding-left: 17px;
    }

.auth-validation-message,
.field-validation-error {
    display: block;
    margin-top: 5px;
    color: var(--ov-danger);
    font-size: 10px;
    line-height: 1.4;
}

.auth-input.input-validation-error,
.input-validation-error.auth-input {
    border-color: var(--ov-danger);
}


/* ============================================================
   LOGIN OPTIONS
   ============================================================ */

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 3px 0 20px;
}


/* ============================================================
   REMEMBER ME
   ============================================================ */

.auth-remember {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: var(--ov-muted);
    font-size: 10px;
    cursor: pointer;
}

    .auth-remember .form-check-input {
        width: 15px;
        height: 15px;
        margin: 0;
        border-color: var(--ov-border-strong);
        cursor: pointer;
    }

        .auth-remember .form-check-input:checked {
            border-color: var(--ov-teal-dark);
            background-color: var(--ov-teal-dark);
        }

        .auth-remember .form-check-input:focus {
            border-color: var(--ov-teal);
            box-shadow: 0 0 0 0.18rem rgba(8, 174, 179, 0.15);
        }


/* ============================================================
   LINKS
   ============================================================ */

.auth-link {
    color: var(--ov-teal-dark);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s ease;
}

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


/* ============================================================
   PRIMARY BUTTON
   ============================================================ */

.auth-primary-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    padding: 10px 18px;
    overflow: hidden;
    border: 1px solid var(--ov-teal-dark);
    border-radius: 12px;
    outline: none;
    background: linear-gradient( 135deg, var(--ov-teal-dark), var(--ov-teal) );
    color: var(--ov-white);
    box-shadow: 0 8px 20px rgba(0, 127, 134, 0.20);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}


    /* Tiny highlight across button */

    .auth-primary-btn::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 70%;
        height: 100%;
        background: linear-gradient( 90deg, transparent, rgba(248, 250, 250, 0.16), transparent );
        transform: skewX(-18deg);
        transition: left 0.45s ease;
    }

    .auth-primary-btn:hover {
        border-color: var(--ov-teal);
        color: var(--ov-white);
        box-shadow: 0 11px 25px rgba(0, 127, 134, 0.27);
        transform: translateY(-1px);
    }

        .auth-primary-btn:hover::before {
            left: 140%;
        }

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


/* ============================================================
   SECONDARY BUTTON
   ============================================================ */

.auth-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 44px;
    padding: 9px 16px;
    border: 1px solid var(--ov-border);
    border-radius: 12px;
    background: var(--ov-surface-light);
    color: var(--ov-teal-dark);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

    .auth-secondary-btn:hover {
        border-color: var(--ov-teal);
        background: var(--ov-aqua-soft);
        color: var(--ov-charcoal);
        transform: translateY(-1px);
    }


/* ============================================================
   DANGER BUTTON
   ============================================================ */

.auth-danger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 44px;
    padding: 9px 16px;
    border: 1px solid var(--ov-danger);
    border-radius: 12px;
    background: linear-gradient( 135deg, var(--ov-danger), #b92c3c );
    color: var(--ov-white);
    box-shadow: 0 7px 18px rgba(220, 53, 69, 0.16);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .auth-danger-btn:hover {
        color: var(--ov-white);
        box-shadow: 0 10px 22px rgba(220, 53, 69, 0.23);
        transform: translateY(-1px);
    }


/* ============================================================
   FOOTER
   ============================================================ */

.auth-footer {
    position: relative;
    z-index: 1;
    margin-top: 24px;
    padding-top: 19px;
    border-top: 1px solid var(--ov-border);
    color: var(--ov-muted);
    font-size: 10px;
    text-align: center;
}

    .auth-footer a {
        color: var(--ov-teal-dark);
        font-weight: 800;
        text-decoration: none;
    }

        .auth-footer a:hover {
            color: var(--ov-teal);
            text-decoration: underline;
        }


/* ============================================================
   TWO FACTOR CODE
   ============================================================ */

.auth-code-input {
    padding-left: 13px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-align: center;
}


/* ============================================================
   REMEMBER DEVICE
   ============================================================ */

.auth-remember-device {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 4px 0 20px;
    padding: 13px 14px;
    border: 1px solid var(--ov-border);
    border-radius: 12px;
    background: linear-gradient( 135deg, var(--ov-surface-light), var(--ov-surface) );
}

.auth-remember-device-content {
    min-width: 0;
}

.auth-remember-device-title {
    margin-bottom: 2px;
    color: var(--ov-text);
    font-size: 11px;
    font-weight: 800;
}

.auth-remember-device-text {
    color: var(--ov-muted);
    font-size: 9px;
    line-height: 1.45;
}


/* ============================================================
   AUTH SWITCH
   ============================================================ */

.auth-switch {
    flex-shrink: 0;
}

    .auth-switch .form-check-input {
        width: 36px;
        height: 19px;
        margin: 0;
        border-color: var(--ov-border-strong);
        cursor: pointer;
    }

        .auth-switch .form-check-input:checked {
            border-color: var(--ov-teal-dark);
            background-color: var(--ov-teal-dark);
        }

        .auth-switch .form-check-input:focus {
            border-color: var(--ov-teal);
            box-shadow: 0 0 0 0.18rem rgba(8, 174, 179, 0.15);
        }


/* ============================================================
   RECOVERY LINK BLOCK
   ============================================================ */

.auth-recovery {
    margin-top: 18px;
    color: var(--ov-muted);
    font-size: 10px;
    line-height: 1.55;
    text-align: center;
}

    .auth-recovery a {
        color: var(--ov-teal-dark);
        font-weight: 800;
        text-decoration: none;
    }

        .auth-recovery a:hover {
            color: var(--ov-teal);
            text-decoration: underline;
        }


/* ============================================================
   SECURITY NOTICE
   ============================================================ */

.auth-security-notice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 21px;
    padding: 13px 14px;
    border: 1px solid var(--ov-yellow);
    border-radius: 12px;
    background: linear-gradient( 135deg, rgba(255, 245, 168, 0.52), var(--ov-surface-light) );
}

.auth-security-notice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 33px;
    height: 33px;
    flex-shrink: 0;
    border-radius: 9px;
    background: var(--ov-yellow);
    color: var(--ov-charcoal);
    font-size: 0.85rem;
}

.auth-security-notice-content {
    min-width: 0;
}

.auth-security-notice-title {
    margin-bottom: 3px;
    color: var(--ov-text);
    font-size: 11px;
    font-weight: 800;
}

.auth-security-notice-text {
    color: var(--ov-muted);
    font-size: 10px;
    line-height: 1.55;
}


/* ============================================================
   RECOVERY CODE INPUT
   ============================================================ */

.auth-recovery-code-input {
    padding-left: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
}


/* ============================================================
   LOGOUT INFORMATION
   ============================================================ */

.auth-logout-info,
.auth-logout-success {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 22px;
    padding: 14px;
    border: 1px solid var(--ov-border);
    border-radius: 12px;
    background: linear-gradient( 135deg, var(--ov-surface-light), var(--ov-surface) );
}

.auth-logout-success {
    border-color: var(--ov-aqua);
}

.auth-logout-info-icon,
.auth-logout-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 9px;
    background: var(--ov-aqua-soft);
    color: var(--ov-teal-dark);
}

.auth-logout-info-title,
.auth-logout-success-title {
    margin-bottom: 3px;
    color: var(--ov-text);
    font-size: 11px;
    font-weight: 800;
}

.auth-logout-info-text,
.auth-logout-success-text {
    color: var(--ov-muted);
    font-size: 10px;
    line-height: 1.55;
}

.auth-logout-actions {
    display: grid;
    gap: 9px;
}

.auth-logout-form {
    margin: 0;
}


/* ============================================================
   REGISTER OPTIONS
   ============================================================ */

.auth-register-options {
    display: grid;
    gap: 10px;
    margin: 20px 0;
}

.auth-option-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 14px;
    border: 1px solid var(--ov-border);
    border-radius: 12px;
    background: linear-gradient( 135deg, var(--ov-surface-light), var(--ov-surface) );
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .auth-option-card:hover {
        border-color: var(--ov-aqua);
        box-shadow: 0 5px 14px rgba(0, 127, 134, 0.07);
    }

.auth-option-content {
    min-width: 0;
}

.auth-option-title {
    margin-bottom: 2px;
    color: var(--ov-text);
    font-size: 11px;
    font-weight: 800;
}

.auth-option-text {
    color: var(--ov-muted);
    font-size: 9px;
    line-height: 1.45;
}


/* ============================================================
   REGISTER SWITCH
   ============================================================ */

.auth-option-switch {
    flex-shrink: 0;
}

    .auth-option-switch .form-check-input {
        width: 36px;
        height: 19px;
        margin: 0;
        border-color: var(--ov-border-strong);
        cursor: pointer;
    }

        .auth-option-switch .form-check-input:checked {
            border-color: var(--ov-teal-dark);
            background-color: var(--ov-teal-dark);
        }

        .auth-option-switch .form-check-input:focus {
            border-color: var(--ov-teal);
            box-shadow: 0 0 0 0.18rem rgba(8, 174, 179, 0.15);
        }


/* ============================================================
   TERMS
   ============================================================ */

.auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 18px 0 21px;
    color: var(--ov-muted);
    font-size: 9px;
    line-height: 1.55;
}

    .auth-terms .form-check-input {
        margin-top: 2px;
        flex-shrink: 0;
        border-color: var(--ov-border-strong);
    }

        .auth-terms .form-check-input:checked {
            border-color: var(--ov-teal-dark);
            background-color: var(--ov-teal-dark);
        }

    .auth-terms a {
        color: var(--ov-teal-dark);
        font-weight: 700;
        text-decoration: none;
    }

        .auth-terms a:hover {
            color: var(--ov-teal);
            text-decoration: underline;
        }


/* ============================================================
   PET MODAL
   ============================================================ */

.auth-pet-modal .modal-content {
    overflow: hidden;
    border: 1px solid var(--ov-border);
    border-radius: 18px;
    background: linear-gradient( 145deg, var(--ov-surface-light), var(--ov-surface) );
    color: var(--ov-text);
    box-shadow: var(--ov-shadow-strong);
}

.auth-pet-modal .modal-header {
    position: relative;
    border-bottom: 1px solid var(--ov-border);
    background: linear-gradient( 135deg, var(--ov-charcoal), var(--ov-dark-soft) );
    color: var(--ov-white);
}

    .auth-pet-modal .modal-header::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 3px;
        background: linear-gradient( 90deg, var(--ov-teal), var(--ov-aqua), var(--ov-yellow) );
    }

.auth-pet-modal .modal-title {
    color: var(--ov-white);
    font-weight: 800;
}

.auth-pet-modal .btn-close {
    filter: invert(1);
}

.auth-pet-modal .modal-footer {
    border-top: 1px solid var(--ov-border);
}


/* ============================================================
   PET INPUTS
   ============================================================ */

.auth-pet-field {
    margin-bottom: 15px;
}

.auth-pet-label {
    display: block;
    margin-bottom: 6px;
    color: var(--ov-text);
    font-size: 11px;
    font-weight: 700;
}

.auth-pet-input,
.auth-pet-select,
.auth-pet-textarea {
    width: 100%;
    border: 1px solid var(--ov-border);
    border-radius: 10px;
    background: var(--ov-surface-light);
    color: var(--ov-text);
    font-size: 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-pet-input,
.auth-pet-select {
    min-height: 42px;
    padding: 8px 11px;
}

.auth-pet-textarea {
    min-height: 90px;
    padding: 10px 11px;
    resize: vertical;
}

    .auth-pet-input:focus,
    .auth-pet-select:focus,
    .auth-pet-textarea:focus {
        border-color: var(--ov-teal);
        outline: none;
        box-shadow: 0 0 0 0.18rem rgba(8, 174, 179, 0.14);
    }


/* ============================================================
   PET OPTIONS
   ============================================================ */

.auth-pet-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.auth-pet-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px;
    border: 1px solid var(--ov-border);
    border-radius: 10px;
    background: var(--ov-surface);
    color: var(--ov-muted);
    font-size: 10px;
}

    .auth-pet-option .form-check-input {
        margin: 0;
        border-color: var(--ov-border-strong);
    }

        .auth-pet-option .form-check-input:checked {
            border-color: var(--ov-teal-dark);
            background-color: var(--ov-teal-dark);
        }


/* ============================================================
   MICROCHIP FIELD
   ============================================================ */

.auth-microchip-field {
    display: none;
    margin-top: 12px;
}

    .auth-microchip-field.is-visible {
        display: block;
    }


/* ============================================================
   PET WEIGHT
   ============================================================ */

.auth-weight-group {
    display: flex;
    align-items: stretch;
}

    .auth-weight-group .auth-pet-input {
        border-radius: 10px 0 0 10px;
    }

.auth-weight-unit {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--ov-border);
    border-left: 0;
    border-radius: 0 10px 10px 0;
    background: var(--ov-aqua-soft);
    color: var(--ov-teal-dark);
    font-size: 10px;
    font-weight: 800;
}


/* ============================================================
   PET MODAL BUTTONS
   ============================================================ */

.auth-modal-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 15px;
    border: 1px solid var(--ov-teal-dark);
    border-radius: 10px;
    background: linear-gradient( 135deg, var(--ov-teal-dark), var(--ov-teal) );
    color: var(--ov-white);
    font-size: 11px;
    font-weight: 800;
}

    .auth-modal-primary-btn:hover {
        color: var(--ov-white);
    }

.auth-modal-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 15px;
    border: 1px solid var(--ov-border);
    border-radius: 10px;
    background: var(--ov-surface-light);
    color: var(--ov-muted);
    font-size: 11px;
    font-weight: 700;
}


/* ============================================================
   REGISTER CONFIRMATION
   ============================================================ */

.auth-confirm-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 22px 0;
    padding: 15px;
    border: 1px solid var(--ov-border);
    border-radius: 13px;
    background: linear-gradient( 135deg, var(--ov-surface-light), var(--ov-surface) );
    text-align: left;
}

.auth-confirm-notice-success {
    border-color: var(--ov-aqua);
}

.auth-confirm-notice-warning {
    border-color: var(--ov-yellow);
    background: linear-gradient( 135deg, rgba(255, 245, 168, 0.46), var(--ov-surface-light) );
}

.auth-confirm-notice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    background: linear-gradient( 135deg, var(--ov-aqua-soft), var(--ov-page) );
    color: var(--ov-teal-dark);
    font-size: 0.95rem;
}

.auth-confirm-notice-warning .auth-confirm-notice-icon {
    background: var(--ov-yellow);
    color: var(--ov-charcoal);
}

.auth-confirm-notice-content {
    min-width: 0;
}

.auth-confirm-notice-title {
    margin-bottom: 3px;
    color: var(--ov-text);
    font-size: 11px;
    font-weight: 800;
}

.auth-confirm-notice-text {
    color: var(--ov-muted);
    font-size: 10px;
    line-height: 1.6;
}

.auth-confirm-tip {
    margin-top: 11px;
    color: var(--ov-muted);
    font-size: 9px;
    line-height: 1.5;
}

.auth-confirm-actions {
    display: grid;
    gap: 9px;
    margin-top: 20px;
}


/* ============================================================
   RESEND EMAIL CONFIRMATION
   ============================================================ */

.auth-resend-info {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 22px;
    padding: 13px 14px;
    border: 1px solid var(--ov-border);
    border-radius: 12px;
    background: linear-gradient( 135deg, var(--ov-surface-light), var(--ov-surface) );
}

.auth-resend-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 33px;
    height: 33px;
    flex-shrink: 0;
    border-radius: 9px;
    background: var(--ov-aqua-soft);
    color: var(--ov-teal-dark);
}

.auth-resend-info-content {
    min-width: 0;
}

.auth-resend-info-title {
    margin-bottom: 3px;
    color: var(--ov-text);
    font-size: 11px;
    font-weight: 800;
}

.auth-resend-info-text {
    color: var(--ov-muted);
    font-size: 10px;
    line-height: 1.55;
}


/* ============================================================
   RESET PASSWORD NOTE
   ============================================================ */

.auth-password-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
    margin-bottom: 22px;
    padding: 12px 14px;
    border: 1px solid var(--ov-border);
    border-radius: 11px;
    background: linear-gradient( 135deg, var(--ov-surface), var(--ov-page-light) );
    text-align: left;
}

.auth-password-note-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--ov-aqua-soft);
    color: var(--ov-teal-dark);
    font-size: 0.85rem;
}

.auth-password-note-text {
    color: var(--ov-muted);
    font-size: 10px;
    line-height: 1.5;
}


/* ============================================================
   GENERIC FORM CHECK
   ============================================================ */

.auth-card .form-check-input {
    border-color: var(--ov-border-strong);
}

    .auth-card .form-check-input:checked {
        border-color: var(--ov-teal-dark);
        background-color: var(--ov-teal-dark);
    }

    .auth-card .form-check-input:focus {
        border-color: var(--ov-teal);
        box-shadow: 0 0 0 0.18rem rgba(8, 174, 179, 0.15);
    }


/* ============================================================
   BOOTSTRAP VALIDATION
   ============================================================ */

.auth-card .text-danger {
    color: var(--ov-danger) !important;
}


/* ============================================================
   FOCUS / ACCESSIBILITY
   ============================================================ */

.auth-primary-btn:focus-visible,
.auth-secondary-btn:focus-visible,
.auth-danger-btn:focus-visible,
.auth-link:focus-visible,
.auth-footer a:focus-visible,
.auth-modal-primary-btn:focus-visible,
.auth-modal-secondary-btn:focus-visible {
    outline: 3px solid var(--ov-aqua);
    outline-offset: 2px;
}


/* ============================================================
   SELECTION
   ============================================================ */

::selection {
    background: var(--ov-aqua);
    color: var(--ov-charcoal);
}


/* ============================================================
   TABLET / MOBILE
   ============================================================ */

@media (max-width: 767.98px) {

    .auth-container {
        padding: 28px 16px;
    }

    .auth-register-card {
        max-width: 560px;
    }
}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 575.98px) {

    .auth-container {
        align-items: flex-start;
        padding: 20px 12px;
    }

    .auth-card {
        padding: 31px 20px 25px;
        border-radius: 18px;
    }

        .auth-card::before {
            height: 4px;
        }

    .auth-icon {
        width: 57px;
        height: 57px;
        border-radius: 16px;
        font-size: 1.25rem;
    }

        .auth-icon::after {
            width: 12px;
            height: 12px;
        }

    .auth-title {
        font-size: 1.5rem;
    }

    .auth-subtitle {
        font-size: 11px;
    }


    /* Login options */

    .auth-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }


    /* Remember device */

    .auth-remember-device {
        align-items: flex-start;
    }


    /* Register */

    .auth-option-card {
        gap: 12px;
    }


    /* Pet options */

    .auth-pet-options {
        grid-template-columns: 1fr;
    }


    /* Confirmation */

    .auth-confirm-notice {
        padding: 13px;
    }

    .auth-confirm-notice-icon {
        width: 33px;
        height: 33px;
    }


    /* Resend */

    .auth-resend-info {
        padding: 12px;
    }


    /* Password */

    .auth-password-note {
        padding: 11px 12px;
    }

    .auth-password-note-icon {
        width: 30px;
        height: 30px;
    }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .auth-primary-btn:hover,
    .auth-secondary-btn:hover,
    .auth-danger-btn:hover {
        transform: none;
    }
}

/* ============================================================
   FIX: AUTH INPUT ICON / TEXT OVERLAP
   More specific than Bootstrap .form-control and layout styles.
   Applies to Login, Register and other auth forms with icon wrappers.
   ============================================================ */
.auth-input-wrapper > .auth-input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
}

.auth-input-wrapper > input.auth-input,
.auth-input-wrapper > input.form-control.auth-input,
.auth-input-wrapper > textarea.auth-input {
    padding-left: 44px !important;
    padding-right: 14px;
    box-sizing: border-box;
}

/* Fields intentionally without icons retain their normal spacing. */
.auth-input-wrapper > .auth-input-no-icon,
.auth-input-wrapper > input.auth-input-no-icon {
    padding-left: 13px !important;
}
