/* =====================================================
   AUTH PAGES - RESPONSIVE ONLY
   Three self-contained blocks. Paste each block at the very
   bottom of its own CSS file (after the existing rules):

     BLOCK 1 -> signup.css
     BLOCK 2 -> login.css
     BLOCK 3 -> otp.css

   Breakpoints: 950 (and short screens) / 600 / 360
   ===================================================== */


/* =====================================================
   BLOCK 1 - paste into signup.css
   ===================================================== */

/* Narrow OR short screens: the form leaves the absolute centring
   (which clips tall forms) and the page centres it with flexbox and
   scrolls when the form is taller than the screen. */
@media (max-width: 950px), (max-height: 760px) {

    .signup-container {
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 1rem;
    }

    .signup-form {
        position: static;
        transform: none;
    }
}

@media (max-width: 950px) {

    .signup-form {
        box-sizing: border-box;
        width: 100%;
        max-width: 30rem;
    }
}

@media (max-width: 600px) {

    .signup-container {
        padding: 0.75rem;
    }

    .signup-form {
        padding: 1.5rem 0.75rem;
    }

    .signup-heading {
        width: 100%;
        padding: 0.5rem 0;
    }

    .signup-heading h2 {
        font-size: 1.4rem;
        line-height: 1.9rem;
    }

    .signup-heading p {
        font-size: 0.9rem;
    }

    .signup-form .signup-content {
        width: 100%;
        padding: 0.5rem 0;
    }

    .signup-content form {
        gap: 18px;
    }

    /* 1rem (16px) text stops iPhones zooming in when a field is tapped */
    .signup-content form .input-box .input input {
        min-width: 0;
        font-size: 1rem;
    }

    .already-account {
        flex-wrap: wrap;
        text-align: center;
    }
}

@media (max-width: 360px) {

    .signup-form {
        padding: 1.25rem 0.6rem;
    }

    .signup-heading h2 {
        font-size: 1.25rem;
        line-height: 1.7rem;
    }
}


/* =====================================================
   BLOCK 2 - paste into login.css
   ===================================================== */

@media (max-width: 950px), (max-height: 760px) {

    .login-container {
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 1rem;
    }

    .login-form {
        position: static;
        transform: none;
    }
}

@media (max-width: 950px) {

    .login-form {
        box-sizing: border-box;
        width: 100%;
        max-width: 30rem;
    }
}

@media (max-width: 600px) {

    .login-container {
        padding: 0.75rem;
    }

    .login-form {
        padding: 1.5rem 0.75rem;
    }

    .login-heading {
        width: 100%;
        padding: 0.5rem 0;
    }

    .login-heading h2 {
        font-size: 1.4rem;
        line-height: 1.9rem;
    }

    .login-heading p {
        font-size: 0.9rem;
    }

    .login-form .login-content {
        width: 100%;
        padding: 0.5rem 0;
    }

    .login-content form {
        gap: 18px;
    }

    .login-content form .input-box .input input {
        min-width: 0;
        font-size: 1rem;
    }

    .no-account {
        flex-wrap: wrap;
        text-align: center;
    }
}

@media (max-width: 360px) {

    .login-form {
        padding: 1.25rem 0.6rem;
    }

    .login-heading h2 {
        font-size: 1.25rem;
        line-height: 1.7rem;
    }
}


/* =====================================================
   BLOCK 3 - paste into otp.css
   ===================================================== */

@media (max-width: 950px), (max-height: 760px) {

    .otp-container {
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 1rem;
    }

    .otp-form {
        position: static;
        transform: none;
    }
}

@media (max-width: 950px) {

    .otp-form {
        box-sizing: border-box;
        width: 100%;
        max-width: 30rem;
    }
}

@media (max-width: 600px) {

    .otp-container {
        padding: 0.75rem;
    }

    .otp-form {
        padding: 1.5rem 0.75rem;
    }

    .otp-heading {
        width: 100%;
        padding: 0.5rem 0;
    }

    .otp-heading h2 {
        font-size: 1.4rem;
        line-height: 1.9rem;
    }

    .otp-heading p {
        font-size: 0.9rem;
    }

    .otp-form .otp-content {
        width: 100%;
        padding: 0.5rem 0;
    }

    .otp-content form {
        gap: 18px;
    }

    .otp-content form .input-box .input input {
        min-width: 0;
        font-size: 1rem;
    }

    .already-account {
        flex-wrap: wrap;
        text-align: center;
    }
}

@media (max-width: 360px) {

    .otp-form {
        padding: 1.25rem 0.6rem;
    }

    .otp-heading h2 {
        font-size: 1.25rem;
        line-height: 1.7rem;
    }
}