css * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #12986f;
    --primary-dark: #0d805d;

    --black: #080808;
    --white: #ffffff;

    --muted: #68748b;

    --input-bg: #f0f0f0;

    --border: #e5e5e5;

    --link: #003cff;

    --error: #e53935;
    --success: #12986f;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;

    background: #ffffff;

    color: var(--black);
}


/* =====================================================
MAIN PAGE
===================================================== */

.signup-page {
    width: 100%;

    min-height: 100vh;
    min-height: 100dvh;

    display: flex;

    overflow: hidden;
}


/* =====================================================
MAIN IMAGE
===================================================== */

.visual-section {
    width: 70%;

    min-height: 100vh;
    min-height: 100dvh;

    background: #eaf8f5;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-section img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
    object-position: center;
}


/* =====================================================
RIGHT SECTION
===================================================== */

.signup-section {
    width: 30%;

    min-height: 100vh;
    min-height: 100dvh;

    padding: 10px 24px 25px;

    background: #ffffff;

    border-left: 1px solid var(--border);

    overflow-y: auto;
}


/* =====================================================
LOGO
===================================================== */

.logo {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin: 10px 0 12px;

    text-decoration: none;
}

.logo-icon {
    width: 38px;
    height: 38px;

    flex-shrink: 0;
}

.logo-icon img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
}

.logo-name {
    width: 100px;
    height: 38px;

    display: flex;
    align-items: center;
}

.logo-name img {
    width: 100%;
    height: auto;

    display: block;

    object-fit: contain;
}


/* =====================================================
INTRO
===================================================== */

.intro h1 {
    font-size: 28px;

    line-height: 1.2;

    font-weight: 750;

    letter-spacing: -0.6px;
}

.intro h1 span {
    color: var(--primary);
}

.intro p {
    margin-top: 15px;

    max-width: 340px;

    color: var(--muted);

    font-size: 11.5px;

    line-height: 1.55;
}


/* =====================================================
SIGNUP CONTAINER
===================================================== */

.signup-container {
    width: 100%;

    max-width: 430px;

    margin-top: 20px;
}

.signup-container h2 {
    font-size: 25px;

    line-height: 1.2;

    margin-bottom: 21px;
}


/* =====================================================
INPUT GROUP
===================================================== */

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;

    margin-left: 12px;
    margin-bottom: 6px;

    font-size: 12px;

    font-weight: 700;
}

.input-group input {
    width: 100%;

    height: 40px;

    border: 1px solid transparent;

    outline: none;

    border-radius: 6px;

    background: var(--input-bg);

    padding: 0 13px;

    font-size: 12px;

    color: #333;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.input-group input::placeholder {
    color: #64718a;
}

.input-group input:focus {
    background: #ffffff;

    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(18, 152, 111, 0.10);
}

.input-group input:invalid:not(:placeholder-shown) {
    border-color: rgba(229, 57, 53, 0.45);
}


/* =====================================================
EMAIL + VERIFY
===================================================== */

.email-row {
    display: flex;

    align-items: center;

    gap: 6px;
}

.email-row input {
    flex: 1;

    min-width: 0;
}

.verify-btn {
    height: 40px;

    width: 104px;

    flex-shrink: 0;

    border: 1px solid #55cdb0;

    border-radius: 6px;

    background: #ffffff;

    color: var(--primary);

    font-size: 12px;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.verify-btn:hover {
    background: #effaf7;
}

.verify-btn:disabled {
    opacity: 0.6;

    cursor: not-allowed;
}

.verify-btn.verified {
    border-color: var(--primary);

    background: var(--primary);

    color: #ffffff;
}


/* =====================================================
FIELD MESSAGE
===================================================== */

.field-message {
    display: block;

    min-height: 14px;

    margin-top: 5px;

    margin-left: 5px;

    font-size: 10px;

    line-height: 1.4;
}

.field-message.error {
    color: var(--error);
}

.field-message.success {
    color: var(--success);
}


/* =====================================================
OTP VERIFICATION
===================================================== */

.otp-section {
    width: 100%;

    margin-top: -3px;
    margin-bottom: 15px;

    padding: 13px;

    border: 1px solid #d9eee8;

    border-radius: 7px;

    background: #f7fcfa;
}


/*
 * Explicitly keep hidden OTP sections hidden.
 */

.otp-section[hidden] {
    display: none !important;
}


/* =====================================================
OTP HEADER
===================================================== */

.otp-header {
    margin-bottom: 11px;
}

.otp-header h3 {
    font-size: 12px;

    line-height: 1.4;

    font-weight: 700;

    color: var(--black);
}

.otp-header p {
    margin-top: 3px;

    color: var(--muted);

    font-size: 10px;

    line-height: 1.5;
}


/* =====================================================
OTP INPUT
===================================================== */

.otp-input-group {
    margin-bottom: 8px;
}

.otp-input-group label {
    display: block;

    margin-left: 5px;
    margin-bottom: 5px;

    font-size: 10px;

    font-weight: 700;
}

.otp-input-group input {
    width: 100%;

    height: 40px;

    border: 1px solid #dfe8e5;

    border-radius: 6px;

    outline: none;

    background: #ffffff;

    padding: 0 12px;

    font-size: 15px;

    font-weight: 700;

    letter-spacing: 4px;

    text-align: center;

    color: #222;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.otp-input-group input::placeholder {
    color: #a0a8b5;

    font-size: 11px;

    font-weight: 400;

    letter-spacing: normal;
}

.otp-input-group input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(18, 152, 111, 0.10);
}


/* =====================================================
VERIFY OTP BUTTON
===================================================== */

.verify-otp-btn {
    width: 100%;

    height: 36px;

    border: none;

    border-radius: 5px;

    background: var(--primary);

    color: #ffffff;

    font-size: 11px;

    font-weight: 600;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    transition:
        background 0.2s ease,
        opacity 0.2s ease,
        transform 0.1s ease;
}

.verify-otp-btn:hover {
    background: var(--primary-dark);
}

.verify-otp-btn:active {
    transform: scale(0.99);
}

.verify-otp-btn:disabled {
    opacity: 0.6;

    cursor: not-allowed;
}


/* =====================================================
RESEND OTP
===================================================== */

.otp-resend-row {
    min-height: 25px;

    margin-top: 7px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 8px;
}

.resend-otp-btn {
    border: none;

    padding: 0;

    background: transparent;

    color: var(--link);

    font-size: 10px;

    cursor: pointer;
}

.resend-otp-btn:hover {
    text-decoration: underline;
}

.resend-otp-btn:disabled {
    color: #9aa3b2;

    cursor: not-allowed;

    text-decoration: none;
}

.otp-timer {
    color: var(--muted);

    font-size: 9px;

    text-align: right;
}


/* =====================================================
PASSWORD
===================================================== */

.password-box {
    position: relative;
}

.password-box input {
    padding-right: 43px;
}

.eye-btn {
    position: absolute;

    right: 8px;

    top: 50%;

    transform: translateY(-50%);

    width: 32px;
    height: 32px;

    border: none;

    border-radius: 5px;

    background: transparent;

    cursor: pointer;

    font-size: 14px;

    opacity: 0.5;

    display: flex;

    align-items: center;

    justify-content: center;

    transition:
        opacity 0.2s ease,
        background 0.2s ease;
}

.eye-btn:hover {
    opacity: 1;

    background: rgba(0, 0, 0, 0.05);
}

.eye-btn:focus-visible {
    outline: 2px solid var(--primary);

    outline-offset: 2px;
}


/* =====================================================
PASSWORD STRENGTH
===================================================== */

.password-strength {
    margin-top: 5px;
}

.strength-bars {
    display: flex;

    gap: 4px;
}

.strength-bars span {
    height: 3px;

    flex: 1;

    border-radius: 5px;

    background: #dddddd;

    transition: background 0.2s ease;
}

.password-strength.weak .strength-bars span:nth-child(1) {
    background: var(--error);
}

.password-strength.medium .strength-bars span:nth-child(-n+2) {
    background: #e6a700;
}

.password-strength.good .strength-bars span:nth-child(-n+3) {
    background: #7bbd43;
}

.password-strength.strong .strength-bars span {
    background: var(--primary);
}

#strengthText {
    display: block;

    margin-top: 3px;

    font-size: 9px;

    color: var(--muted);
}


/* =====================================================
TERMS
===================================================== */

.terms {
    display: flex;

    align-items: flex-start;

    gap: 8px;

    margin: 7px 2px 17px;

    color: #596579;

    font-size: 10.5px;

    line-height: 1.5;

    cursor: pointer;
}

.terms input {
    margin-top: 2px;

    accent-color: var(--primary);

    flex-shrink: 0;
}

.terms a {
    color: var(--link);

    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}


/* =====================================================
SIGNUP BUTTON
===================================================== */

.signup-btn {
    width: 100%;

    height: 38px;

    border: none;

    border-radius: 5px;

    background: var(--primary);

    color: #ffffff;

    font-size: 12px;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    transition:
        background 0.2s ease,
        transform 0.1s ease,
        opacity 0.2s ease;
}

.signup-btn:hover {
    background: var(--primary-dark);
}

.signup-btn:active {
    transform: scale(0.99);
}

.signup-btn:disabled {
    opacity: 0.65;

    cursor: not-allowed;
}


/* =====================================================
LOADER
===================================================== */

.btn-loader {
    width: 14px;
    height: 14px;

    border: 2px solid rgba(255, 255, 255, 0.4);

    border-top-color: #ffffff;

    border-radius: 50%;

    animation: spin 0.7s linear infinite;
}

@keyframes spin {

    to {
        transform: rotate(360deg);
    }
}


/* =====================================================
DIVIDER
===================================================== */

.divider {
    display: flex;

    align-items: center;

    gap: 13px;

    margin: 17px 0;
}

.divider span {
    height: 1px;

    background: #999;

    flex: 1;
}

.divider p {
    color: #657084;

    font-size: 12px;
}


/* =====================================================
LOGIN
===================================================== */

.login-text {
    text-align: center;

    font-size: 12px;
}

.login-text a {
    color: var(--link);

    text-decoration: none;
}

.login-text a:hover {
    text-decoration: underline;
}


/* =====================================================
FORM MESSAGE
===================================================== */

.form-message {
    padding: 9px 11px;

    margin-bottom: 15px;

    border-radius: 6px;

    font-size: 11px;

    line-height: 1.5;
}

.error-message {
    color: #a00000;

    background: #fff1f1;

    border: 1px solid #ffd1d1;
}


/* =====================================================
TABLET
===================================================== */

@media (max-width: 1000px) {

    .visual-section {
        width: 60%;
    }

    .signup-section {
        width: 40%;

        padding: 40px 22px 25px;
    }

    .intro h1 {
        font-size: 25px;
    }

    .signup-container h2 {
        font-size: 22px;
    }
}


/* =====================================================
MOBILE
===================================================== */

@media (max-width: 768px) {

    .signup-page {
        flex-direction: column;

        min-height: auto;

        overflow: visible;
    }

    .signup-section {
        order: 1;

        width: 100%;

        min-height: auto;

        padding: 35px 25px 40px;

        border-left: none;

        overflow: visible;
    }

    .signup-container {
        max-width: none;
    }

    .visual-section {
        order: 2;

        width: 100%;

        height: 380px;

        min-height: 380px;
    }

    .visual-section img {
        height: 380px;

        min-height: 380px;

        object-fit: cover;
    }

    .intro h1 {
        font-size: 28px;
    }

    .otp-section {
        padding: 12px;
    }
}


/* =====================================================
SMALL MOBILE
===================================================== */

@media (max-width: 450px) {

    .signup-section {
        padding: 28px 18px 35px;
    }

    .intro h1 {
        font-size: 25px;
    }

    .intro p {
        font-size: 11px;
    }

    .signup-container h2 {
        font-size: 21px;
    }

    .email-row {
        gap: 5px;
    }

    .verify-btn {
        width: 90px;
    }

    .otp-resend-row {
        align-items: flex-start;

        flex-direction: column;

        gap: 3px;
    }

    .otp-timer {
        text-align: left;
    }

    .visual-section {
        height: 300px;

        min-height: 300px;
    }

    .visual-section img {
        height: 300px;

        min-height: 300px;
    }
}


/* =====================================================
REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        transition-duration: 0.01ms !important;
    }
}

