body {
    margin: 0;
    background-color: #0d0d0d;
    color: white;
    font-family: Helvetica, Arial, sans-serif;
    /*font-family: 'Exo 2', sans-serif;*/
}

/* LAYOUT */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    gap: 120px;
}

/* LEFT SIDE */
.intro h1 {
    font-family: 'Libre Barcode 128 Text';
    font-size: 90px;
    margin-bottom: 10px;
}

.intro p {
    font-size: 20px;
    font-weight: 500;
}

.subtext {
    display: block;
    margin-top: 10px;
    color: #aaa;
    font-size: 14px;
}

/* RIGHT SIDE CARD */
.login-card {
    background: #111;
    padding: 40px;
    width: 320px;
    border-radius: 12px;
    border: 1px solid #222;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* INPUTS */
.login-card input {
    padding: 12px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #0d0d0d;
    color: white;
    outline: none;
    font-size: 16px;
    font-family: Helvetica, Arial, sans-serif;
}

.login-card input:focus {
    border: 1px solid white;
}

/* BUTTONS */
.login-card button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: white;
    color: black;
    font-weight: 600;
    cursor: pointer;
}

.login-card button:hover {
    opacity: 0.9;
}

.secondary {
    background: transparent;
    border: 1px solid #333;
    color: white;
    width: 100%
}

/* DIVIDER */
.divider {
    text-align: center;
    font-size: 12px;
    color: #777;
    margin: 10px 0;
}

/* LOGIN TEXT */
.login-link {
    font-size: 12px;
    color: #aaa;
    text-align: center;
}

.login-link a {
    color: white;
    text-decoration: none;
}

.forgot {
    font-size: 12px;
    color: #777;
    text-decoration: none;
    text-align: right;
}

.forgot:hover {
    color: white;
}

.login-card form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-card form button {
    width: 100%;
}

/* OVERLAY BACKGROUND */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    backdrop-filter: blur(8px);
    background: rgba(0,0,0,0.6);

    display: none;
    justify-content: center;
    align-items: center;

    z-index: 1000;
}

/* MODAL BOX */
.signup-modal {
    background: #111;
    padding: 40px;
    width: 350px;

    border-radius: 12px;
    border: 1px solid #222;

    display: flex;
    flex-direction: column;
    gap: 15px;

    position: relative;
}

/* CLOSE BUTTON */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    font-size: 20px;
}

/* FORM */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.signup-form input,
.signup-form select {
    padding: 12px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #0d0d0d;
    color: white;
    font-size: 16px;
    font-family: Helvetica, Arial, sans-serif;
}

.signup-form button {
    padding: 12px;
    background: white;
    color: black;
    border: none;
    border-radius: 8px;
    font-weight: 600;
}

.error {
    color: #ff4d4d;
    font-size: 12px;
    margin-top: -5px;
    margin-bottom: 5px;
}

.error signup-error {
    color: #ff4d4d;
    font-size: 12px;
    margin-top: -5px;
    margin-bottom: 5px;
}

.signup-form input[type="date"] {
    color: #aaa;
}
/* ── ACCOUNT TYPE CARD GRID ── */
.type-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: -4px;
}

.type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.type-option input[type="radio"] { display: none; }

.type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 10px;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    color: #666;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.type-card:hover {
    border-color: #666;
    color: #fff;
}

.type-option input:checked + .type-card {
    border-color: #fff;
    color: #fff;
    background: #1a1a1a;
}

/* ── MODAL SCROLL FIX ── */
.signup-modal {
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .container {
        gap: 60px;
    }
}

@media (max-width: 720px) {
    .container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        justify-content: flex-start;
        padding: 40px 20px 60px;
        gap: 0;
        box-sizing: border-box;
    }

    /* Compact intro — just logo + tagline, no wasted space */
    .intro {
        text-align: center;
        padding-bottom: 28px;
        border-bottom: 1px solid #1e1e1e;
        margin-bottom: 28px;
        width: 100%;
    }

    .intro h1 {
        font-size: 64px;
        margin-bottom: 4px;
        line-height: 1;
    }

    .intro p {
        font-size: 15px;
        margin: 0;
    }

    .subtext {
        font-size: 12px;
        margin-top: 6px;
    }

    /* Card takes full width, comfortable padding */
    .login-card {
        width: 100%;
        max-width: 100%;
        padding: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        gap: 12px;
    }

    /* Bigger tap targets for inputs */
    .login-card input {
        padding: 14px 12px;
        font-size: 16px; /* prevents iOS zoom on focus */
        border-radius: 10px;
    }

    .login-card button {
        padding: 14px;
        font-size: 15px;
        border-radius: 10px;
    }

    .secondary {
        padding: 14px;
        font-size: 14px;
        border-radius: 10px;
    }

    /* Signup modal — full screen sheet on mobile */
    .signup-modal {
        width: 100%;
        max-width: 100%;
        min-height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        border: none;
        padding: 56px 20px 40px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .signup-form input,
    .signup-form select {
        padding: 14px 12px;
        font-size: 16px; /* prevents iOS zoom */
        border-radius: 10px;
    }

    .signup-form button {
        padding: 14px;
        font-size: 15px;
        border-radius: 10px;
    }

    .close-btn {
        top: 16px;
        right: 16px;
        font-size: 22px;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #1e1e1e;
        border-radius: 50%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 32px 16px 60px;
    }

    .intro h1 {
        font-size: 56px;
    }

    .type-card {
        padding: 14px 8px;
        font-size: 10px;
        gap: 6px;
    }
}

/* Fix overlay on mobile — don't let it clip */
@media (max-width: 720px) {
    .overlay {
        align-items: flex-start;
    }
}