﻿

:root {
    --bg: #f4f7f6;
    --panel: #ffffff;
    --panel-soft: #f8faf9;
    --primary: #08664d;
    --primary-hover: #07563f;
    --primary-light: #e9f5f1;
    --gold: #c9ad5b;
    --gold-light: #f7f2df;
    --text: #17231f;
    --text-secondary: #52645e;
    --text-muted: #7c8b86;
    --border: #dfe7e4;
    --border-focus: #0b8b68;
    --danger: #c94b4b;
    --danger-light: #fff1f1;
    --success: #16845f;
    --success-light: #edf9f4;
    --info: #2878b5;
    --info-light: #eef7fd;
    --shadow: 0 20px 50px rgba(23, 53, 45, 0.10), 0 4px 14px rgba(23, 53, 45, 0.05);
}


/* ==========================================
       RESET
       ========================================== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}


body {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
    background: linear-gradient( 135deg, #f7faf9 0%, #eef4f1 100% );
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


/* ==========================================
       MAIN WRAPPER
       ========================================== */

.verification-wrapper {
    width: 100%;
    max-width: 500px;
}


/* ==========================================
       CARD
       ========================================== */

.verification-card {
    position: relative;
    width: 100%;
    background: var(--panel);
    border: 1px solid rgba(8, 102, 77, 0.10);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}


/* ==========================================
       TOP ACCENT
       ========================================== */

.top-accent {
    width: 100%;
    height: 4px;
    background: linear-gradient( 90deg, var(--gold) 0%, var(--primary) 45%, var(--primary) 55%, var(--gold) 100% );
}


/* ==========================================
       CARD CONTENT
       ========================================== */

.card-content {
    padding: 42px 42px 32px;
}


/* ==========================================
       BRAND
       ========================================== */

.brand {
    text-align: center;
    margin-bottom: 34px;
}


.brand-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-light);
    border: 1px solid rgba(8, 102, 77, 0.14);
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(8, 102, 77, 0.08);
}


    .brand-icon svg {
        width: 29px;
        height: 29px;
    }


.brand h1 {
    margin: 0;
    color: var(--text);
    font-size: 25px;
    line-height: 1.3;
    font-weight: 650;
    letter-spacing: -0.3px;
}


.brand p {
    max-width: 370px;
    margin: 10px auto 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.65;
}


/* ==========================================
       PANEL HEADER
       ========================================== */

.panel-head {
    margin-bottom: 22px;
}


    .panel-head h2 {
        margin: 0 0 6px;
        color: var(--text);
        font-size: 17px;
        line-height: 1.4;
        font-weight: 650;
    }


.sub-heading {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
}


/* ==========================================
       METHOD TITLE
       ========================================== */

.method-title {
    margin-bottom: 9px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15px;
}


/* ==========================================
       SMS / EMAIL METHODS
       ========================================== */

.verification-methods {
    display: flex;
    gap: 10px;
    margin-bottom: 23px;
}


.method-option {
    position: relative;
    flex: 1;
}


    .method-option input[type="radio"] {
        position: absolute;
        width: 1px;
        height: 1px;
        opacity: 0;
    }


    .method-option label {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 50px;
        padding: 10px 14px;
        border: 1px solid var(--border);
        border-radius: 9px;
        background: #ffffff;
        color: var(--text-secondary);
        cursor: pointer;
        font-size: 13px;
        font-weight: 600;
        transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    }


        .method-option label:hover {
            border-color: rgba(8, 102, 77, 0.40);
            background: #fbfdfc;
            color: var(--primary);
        }


    .method-option input[type="radio"]:checked + label {
        background: var(--primary-light);
        border-color: var(--primary);
        color: var(--primary);
        box-shadow: 0 0 0 2px rgba(8, 102, 77, 0.06);
    }


    .method-option input[type="radio"]:focus + label {
        box-shadow: 0 0 0 3px rgba(8, 102, 77, 0.12);
    }


/* ==========================================
       FORM GROUP
       ========================================== */

.form-group {
    margin-bottom: 19px;
}


    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: var(--text-secondary);
        font-size: 12.5px;
        font-weight: 600;
    }


/* ==========================================
       INPUT WRAPPER
       ========================================== */

.input-wrap {
    position: relative;
    width: 100%;
}


/* ==========================================
       FIELD ICON
       ========================================== */

.field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: #83948e;
    pointer-events: none;
    transition: color 0.18s ease;
}


.input-wrap:focus-within .field-icon {
    color: var(--primary);
}


/* ==========================================
       INPUT
       ========================================== */

.form-control {
    width: 100%;
    height: 49px;
    padding: 0 14px 0 43px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    background: var(--panel-soft);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}


    .form-control:hover {
        border-color: #c8d5d0;
    }


    .form-control::placeholder {
        color: #9aa9a4;
    }


    .form-control:focus {
        background: #ffffff;
        border-color: var(--border-focus);
        box-shadow: 0 0 0 3px rgba(8, 102, 77, 0.09);
    }


    .form-control:disabled {
        background: #f1f4f3;
        color: #9aa5a1;
        opacity: 0.7;
        cursor: not-allowed;
        border-color: #e3e9e6;
    }


.contact-disabled {
    opacity: 0.58;
    transition: opacity 0.2s ease;
}


/* ==========================================
       VALIDATION
       ========================================== */

.form-group span {
    line-height: 1.4;
}


/* ==========================================
       BUTTONS
       ========================================== */

.btn {
    width: 100%;
    height: 49px;
    padding: 0 18px;
    border: 0;
    border-radius: 9px;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 650;
    letter-spacing: 0.05px;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}


.btn-secondary,
.btn-verify {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(8, 102, 77, 0.16);
}


    .btn-secondary:hover,
    .btn-verify:hover {
        background: var(--primary-hover);
        box-shadow: 0 6px 16px rgba(8, 102, 77, 0.22);
        transform: translateY(-1px);
    }


    .btn-secondary:active,
    .btn-verify:active {
        transform: translateY(0);
        box-shadow: 0 3px 8px rgba(8, 102, 77, 0.15);
    }


.btn:focus {
    box-shadow: 0 0 0 3px rgba(8, 102, 77, 0.13), 0 4px 12px rgba(8, 102, 77, 0.16);
}


.btn-verify {
    margin-top: 5px;
}


/* ==========================================
       MESSAGE
       ========================================== */

.message {
    display: none;
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 12.5px;
    line-height: 1.55;
}


    .message.visible {
        display: block;
    }


    .message.error {
        background: var(--danger-light);
        border: 1px solid rgba(201, 75, 75, 0.20);
        color: var(--danger);
    }


    .message.success {
        background: var(--success-light);
        border: 1px solid rgba(22, 132, 95, 0.18);
        color: var(--success);
    }


    .message.info {
        background: var(--info-light);
        border: 1px solid rgba(40, 120, 181, 0.18);
        color: var(--info);
    }


    .message.warning {
        background: var(--gold-light);
        border: 1px solid rgba(201, 173, 91, 0.25);
        color: #9a8030;
    }


/* ==========================================
       OTP SECTION
       ========================================== */

.otp-section {
    display: none;
}


    .otp-section.visible {
        display: block;
    }


.otp-heading {
    text-align: center;
    margin-bottom: 25px;
}


    .otp-heading h2 {
        margin: 0 0 7px;
        color: var(--text);
        font-size: 19px;
        font-weight: 650;
    }


    .otp-heading p {
        max-width: 360px;
        margin: 0 auto;
        color: var(--text-muted);
        font-size: 12.5px;
        line-height: 1.6;
    }


/* ==========================================
       OTP INPUT
       ========================================== */

.otp-input {
    text-align: center;
    letter-spacing: 8px;
    font-size: 22px;
    font-weight: 650;
    padding-left: 18px;
}


/* ==========================================
       TIMER
       ========================================== */

.timer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 15px 0 20px;
    color: var(--text-muted);
    font-size: 12px;
}


.timer {
    color: #a08229;
    font-weight: 700;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}


    .timer.expired {
        color: var(--danger);
    }


/* ==========================================
       RESEND
       ========================================== */

.resend-container {
    text-align: center;
    margin-top: 17px;
}


    .resend-container span {
        color: var(--text-muted);
        font-size: 12px;
    }


.resend-link {
    color: var(--primary);
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.18s ease;
}


    .resend-link:hover {
        color: var(--primary-hover);
        text-decoration: underline;
    }


/* ==========================================
       LOCKOUT
       ========================================== */

.lockout-section {
    display: none;
    text-align: center;
    padding: 15px 0 5px;
}


.lockout-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--danger-light);
    border: 1px solid rgba(201, 75, 75, 0.18);
    color: var(--danger);
}


    .lockout-icon svg {
        width: 28px;
        height: 28px;
    }


.lockout-section h2 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 19px;
    font-weight: 650;
}


.lockout-section p {
    max-width: 350px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.65;
}


/* ==========================================
       FOOTER
       ========================================== */

.footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}


    .footer p {
        margin: 0 0 3px;
        color: #8b9995;
        font-size: 11px;
        line-height: 1.6;
    }


        .footer p:last-child {
            margin-bottom: 0;
        }


/* ==========================================
       RESPONSIVE
       ========================================== */

@media (max-width: 520px) {

    body {
        padding: 20px 14px;
    }


    .verification-card {
        border-radius: 14px;
    }


    .card-content {
        padding: 30px 22px 25px;
    }


    .brand {
        margin-bottom: 28px;
    }


    .brand-icon {
        width: 58px;
        height: 58px;
        margin-bottom: 15px;
    }


        .brand-icon svg {
            width: 27px;
            height: 27px;
        }


    .brand h1 {
        font-size: 22px;
    }


    .brand p {
        font-size: 12.5px;
    }


    .verification-methods {
        gap: 8px;
    }


    .method-option label {
        min-height: 47px;
        font-size: 12.5px;
    }


    .form-control {
        height: 48px;
    }


    .btn {
        height: 48px;
    }


    .otp-input {
        font-size: 20px;
        letter-spacing: 7px;
    }
}


/* ==========================================
       VERY SMALL DEVICES
       ========================================== */

@media (max-width: 360px) {

    body {
        padding: 12px;
    }


    .card-content {
        padding: 25px 18px 22px;
    }


    .brand h1 {
        font-size: 21px;
    }


    .verification-methods {
        flex-direction: column;
    }


    .method-option label {
        min-height: 45px;
    }
}


