   :root {
        --green: #6da32d;
        --green-light: #eaf3df;
        --green-dark: #5a8a24;
        --border: #ddd;
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    body {
        background: #f5f7fa;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* WRAPPER - centers the card */
    .auth-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        width: 100%;
        padding: 20px;
        background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    }

    /* CARD */
    .auth-card {
        max-width: 460px;
        width: 100%;
        padding: 40px 35px 45px;
        border-radius: 28px;
        background: #ffffff;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 8px 20px rgba(0, 0, 0, 0.05);
        transition: transform 0.2s ease;
        text-align: center;
    }

    /* LOGO SECTION - centered on top */
    .logo-section {
        text-align: center;
        margin-bottom: 30px;
    }

    .logo-container {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: opacity 0.2s;
    }

    .logo-container:hover {
        opacity: 0.85;
    }

    .logo-img {
        width: 160px;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }

    /* FORM HEADINGS */
    h2 {
        font-size: 26px;
        margin-bottom: 8px;
        color: #2d3e2b;
        font-weight: 600;
    }

    .subtitle {
        font-size: 14px;
        color: #7c8b9f;
        margin-bottom: 25px;
    }

    /* FORM GROUPS */
    label {
        font-size: 13px;
        font-weight: 500;
        color: #2d3e2b;
        display: block;
        margin-bottom: 8px;
        text-align: left;
    }

    /* input wrapper (icons inside) */
    .input-box {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
        margin-bottom: 15px;
    }

    .input-box input {
        width: 100%;
        padding: 13px 45px 13px 42px;
        border: 1.5px solid #e2e8f0;
        border-radius: 16px;
        font-size: 15px;
        background: #fff;
        transition: all 0.2s;
        outline: none;
        font-weight: 500;
    }

    .input-box input:focus {
        border-color: var(--green);
        box-shadow: 0 0 0 3px rgba(109, 163, 45, 0.1);
    }

    /* left icons */
    .input-box i:first-child {
        position: absolute;
        left: 16px;
        color: #94a3b8;
        font-size: 1rem;
        pointer-events: none;
    }

    /* eye icon (right side) */
    .input-box .eye {
        position: absolute;
        right: 16px;
        cursor: pointer;
        color: #7c8b9f;
        font-size: 1rem;
        transition: color 0.2s;
        z-index: 2;
    }

    .input-box .eye:hover {
        color: var(--green);
    }

    /* OTP specific styling */
    #otp {
        letter-spacing: 4px;
        font-size: 22px;
        font-weight: 600;
        text-align: center;
    }

    /* Contact help / badge area */
    #contactHelp {
        font-size: 12px;
        margin-top: -8px;
        margin-bottom: 15px;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .contact-type-badge {
        display: inline-block;
        padding: 4px 10px;
        border-radius: 20px;
        font-size: 11px;
        font-weight: bold;
    }

    .email-badge {
        background: #e3f2fd;
        color: #1976d2;
    }

    .phone-badge {
        background: #e8f5e8;
        color: #2e7d32;
    }

    #otpHelp {
        font-size: 12px;
        text-align: center;
        margin: 8px 0 12px;
        color: #6c757d;
    }

    /* Password strength meter */
    #passwordStrength {
        height: 4px;
        background: #e2e8f0;
        margin: 10px 0 5px;
        border-radius: 4px;
        overflow: hidden;
    }

    #strengthBar {
        height: 100%;
        width: 0;
        transition: width 0.3s ease;
        border-radius: 4px;
    }

    #strengthText {
        font-size: 11px;
        text-align: right;
        color: #7c8b9f;
        margin-bottom: 15px;
    }

    /* BUTTONS */
    .btn-primary {
        width: 100%;
        padding: 14px;
        border-radius: 40px;
        background: var(--green);
        color: white;
        border: none;
        font-weight: 700;
        font-size: 1rem;
        cursor: pointer;
        transition: all 0.25s ease;
        box-shadow: 0 4px 8px rgba(109, 163, 45, 0.2);
        letter-spacing: 0.3px;
        margin-top: 5px;
    }

    .btn-primary:hover {
        background: var(--green-dark);
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(109, 163, 45, 0.25);
    }

    .btn-primary:active {
        transform: translateY(1px);
    }

    .btn-primary:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

    .btn-secondary {
        width: 100%;
        padding: 12px;
        border-radius: 40px;
        background: transparent;
        border: 1.5px solid #e2e8f0;
        color: #4a5568;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
        margin-top: 10px;
    }

    .btn-secondary:hover {
        border-color: var(--green);
        color: var(--green);
        background: var(--green-light);
    }

    .btn-text {
        background: none;
        border: none;
        color: var(--green);
        font-size: 13px;
        cursor: pointer;
        margin-top: 12px;
        text-decoration: underline;
        display: inline-block;
    }

    .btn-text:hover {
        color: var(--green-dark);
    }

    /* Back to login link row */
    .form-row {
        display: flex;
        justify-content: center;
        margin-top: 25px;
        padding-top: 20px;
        border-top: 1px solid #eef2f6;
    }

    .link {
        font-size: 13px;
        color: var(--green);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .link:hover {
        color: var(--green-dark);
        text-decoration: underline;
    }

    /* TOAST NOTIFICATION */
    #toast {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        width: 100%;
        text-align: center;
        color: #fff;
        padding: 0 16px;
        margin-bottom: 0;
        border-radius: 60px;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.3s ease;
        background: transparent;
    }

    #toast.show {
        opacity: 1;
        max-height: 60px;
        padding: 12px 16px;
        margin-bottom: 20px;
        border-radius: 60px;
    }

    #toast.success {
        background: #2b9348;
    }

    #toast.error {
        background: #e63946;
    }

    #toast.info {
        background: #2196F3;
    }

    /* Input validation styles */
    .input-error {
        border-color: #e63946 !important;
        background: #fff5f5 !important;
    }

    .input-success {
        border-color: #2b9348 !important;
        background: #f0fff4 !important;
    }

    /* Message banner */
    .message-banner {
        background: #e8f5e8;
        color: #2e7d32;
        padding: 12px;
        border-radius: 12px;
        font-size: 13px;
        text-align: center;
        margin-bottom: 20px;
    }

    /* Responsive */
    @media (max-width: 500px) {
        .auth-card {
            padding: 30px 22px 38px;
        }
        .logo-img {
            width: 130px;
        }
        h2 {
            font-size: 22px;
        }
        .btn-primary, .btn-secondary {
            padding: 12px;
        }
    }