
/* =========================================
   RESET
========================================= */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;
}


html {

    width: 100%;

    min-height: 100%;

    scroll-behavior: smooth;
}


body {

    width: 100%;

    min-height: 100vh;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #faf8fd;

    color: #222;

    overflow-x: hidden;
}



/* =========================================
   MAIN PAGE
========================================= */

.signup-page {

    min-height: 100vh;

    display: grid;

    grid-template-columns: 43% 57%;
}



/* =========================================
   LEFT SIDE
========================================= */

.signup-left {

    background:
        linear-gradient(
            135deg,
            #5420ad,
            #8730d1
        );

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 50px;
}


.left-content {

    width: 82%;

    max-width: 550px;
}



/* =========================================
   LEFT LOGO
========================================= */

.left-logo {

    width: 155px;

    height: 90px;

    object-fit: contain;

    background: white;

    border-radius: 15px;

    padding: 7px;

    margin-bottom: 35px;
}



/* =========================================
   LEFT HEADING
========================================= */

.left-content h1 {

    font-size: 48px;

    line-height: 1.1;

    margin-bottom: 20px;

    font-weight: 700;
}


.left-content h1 span {

    color: #ffae00;
}


.left-content > p {

    font-size: 18px;

    line-height: 1.7;

    color:
        rgba(255, 255, 255, 0.9);

    max-width: 480px;

    margin-bottom: 35px;
}



/* =========================================
   BENEFITS
========================================= */

.benefits {

    display: flex;

    flex-direction: column;

    gap: 15px;
}


.benefit {

    background:
        rgba(255, 255, 255, 0.13);

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    padding: 18px 22px;

    border-radius: 12px;

    display: flex;

    align-items: center;

    gap: 14px;

    font-size: 17px;

    transition: 0.2s;
}


.benefit:hover {

    background:
        rgba(255, 255, 255, 0.2);

    transform: translateX(4px);
}


.benefit-icon {

    font-size: 22px;
}



/* =========================================
   RIGHT SIDE
========================================= */

.signup-right {

    background: #faf8fd;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 35px;
}


.signup-box {

    width: 100%;

    max-width: 620px;
}



/* =========================================
   LOGO
========================================= */

.signup-logo {

    display: block;

    width: 130px;

    height: 70px;

    object-fit: contain;

    margin:
        0 auto 5px;
}



/* =========================================
   HEADING
========================================= */

.signup-box h2 {

    text-align: center;

    font-size: 35px;

    color: #292929;

    margin-bottom: 5px;
}


.subtitle {

    text-align: center;

    color: #888;

    margin-bottom: 28px;

    font-size: 15px;
}



/* =========================================
   INPUT GROUP
========================================= */

.input-group {

    margin-bottom: 16px;
}


.input-group label {

    display: block;

    font-size: 14px;

    font-weight: 600;

    color: #333;

    margin-bottom: 7px;
}



/* =========================================
   INPUTS + SELECT
========================================= */

.input-group input,
.input-group select {

    width: 100%;

    height: 50px;

    border:
        1px solid #d8d8d8;

    border-radius: 10px;

    padding:
        0 16px;

    font-size: 15px;

    outline: none;

    background: white;

    color: #222;

    transition: 0.2s;
}


.input-group input::placeholder {

    color: #777;
}


.input-group input:focus,
.input-group select:focus {

    border-color: #7427d0;

    box-shadow:
        0 0 0 3px
        rgba(116, 39, 208, 0.12);
}



/* =========================================
   SELECT
========================================= */

.input-group select {

    cursor: pointer;

    appearance: auto;
}



/* =========================================
   PHONE + STUDENT ID
========================================= */

.two-inputs {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 16px;
}



/* =========================================
   PASSWORD CONTAINER
========================================= */

.password-box {

    position: relative;

    width: 100%;

    height: 50px;
}



/* =========================================
   PASSWORD INPUT
========================================= */

.password-box input {

    width: 100%;

    height: 50px;

    padding:
        0 58px 0 16px;
}



/* =========================================
   PASSWORD TOGGLE BUTTON
========================================= */

.password-box button.password-toggle {

    position: absolute;

    right: 5px;

    top: 50%;

    transform:
        translateY(-50%);

    width: 44px;

    height: 44px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: none;

    border-radius: 8px;

    background: transparent;

    color: #555;

    cursor: pointer;

    font-size: 18px;

    line-height: 1;

    padding: 0;

    margin: 0;

    z-index: 20;

    /*
       Important for mobile phones.
       Prevents browser gesture handling
       from interfering with the button.
    */
    touch-action: manipulation;

    /*
       Prevent text selection when tapping
       repeatedly on mobile.
    */
    user-select: none;

    -webkit-user-select: none;

    /*
       Removes the default mobile
       tap highlight.
    */
    -webkit-tap-highlight-color:
        transparent;
}



/* =========================================
   EYE ICON
========================================= */

.eye-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    height: 100%;

    pointer-events: none;
}



/* =========================================
   PASSWORD BUTTON ACTIVE
========================================= */

.password-box button.password-toggle:active {

    background:
        rgba(116, 39, 208, 0.12);

    transform:
        translateY(-50%)
        scale(0.95);
}



/* =========================================
   PASSWORD BUTTON FOCUS
========================================= */

.password-box button.password-toggle:focus {

    outline: none;
}


.password-box button.password-toggle:focus-visible {

    outline:
        2px solid #7427d0;

    outline-offset: 2px;
}



/* =========================================
   DESKTOP HOVER
========================================= */

@media (hover: hover) {

    .password-box button.password-toggle:hover {

        background:
            rgba(116, 39, 208, 0.08);

        color: #6825c1;
    }

}



/* =========================================
   TERMS
========================================= */

.terms {

    display: flex;

    align-items: flex-start;

    gap: 9px;

    font-size: 13px;

    color: #666;

    margin-top: 3px;

    margin-bottom: 20px;

    cursor: pointer;
}


.terms input {

    width: 16px;

    height: 16px;

    margin-top: 1px;

    cursor: pointer;

    flex-shrink: 0;
}


.terms a {

    color: #6825c1;

    font-weight: bold;

    text-decoration: underline;
}



/* =========================================
   CREATE ACCOUNT BUTTON
========================================= */

.signup-button {

    width: 100%;

    height: 53px;

    border: none;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #6120bd,
            #9236d5
        );

    color: white;

    font-size: 17px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}


.signup-button:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 8px 20px
        rgba(97, 32, 189, 0.25);
}


.signup-button:active {

    transform:
        translateY(0);
}


.signup-button:disabled {

    opacity: 0.7;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}



/* =========================================
   LOGIN LINK
========================================= */

.login-text {

    text-align: center;

    margin-top: 20px;

    color: #777;

    font-size: 14px;
}


.login-text a {

    color: #6825c1;

    font-weight: bold;

    text-decoration: none;
}


.login-text a:hover {

    text-decoration: underline;
}



/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

    .signup-page {

        grid-template-columns: 1fr;
    }


    .signup-left {

        display: none;
    }


    .signup-right {

        min-height: 100vh;

        padding: 30px 20px;

        align-items: flex-start;

        padding-top: 35px;
    }


    .signup-box {

        max-width: 620px;
    }

}



/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    body {

        background: #faf8fd;

        overflow-x: hidden;
    }


    .signup-right {

        width: 100%;

        min-height: 100vh;

        padding:
            25px 15px 35px;

        align-items: flex-start;
    }


    .signup-box {

        width: 100%;

        max-width: 100%;
    }


    .signup-logo {

        width: 115px;

        height: 62px;

        margin-bottom: 5px;
    }


    .signup-box h2 {

        font-size: 29px;

        margin-bottom: 5px;
    }


    .subtitle {

        font-size: 14px;

        margin-bottom: 24px;
    }


    .two-inputs {

        grid-template-columns: 1fr;

        gap: 0;
    }


    .input-group {

        margin-bottom: 15px;
    }


    .input-group input,
    .input-group select {

        height: 50px;

        font-size: 16px;
    }


    .password-box {

        height: 50px;
    }


    .password-box input {

        height: 50px;

        padding-right: 58px;

        font-size: 16px;
    }


    /*
       Larger touch target on mobile.
       This is the important mobile fix.
    */

    .password-box button.password-toggle {

        right: 3px;

        width: 46px;

        height: 46px;

        z-index: 50;

        touch-action: manipulation;
    }


    .eye-icon {

        font-size: 18px;
    }


    .signup-button {

        height: 53px;

        font-size: 16px;
    }


    .terms {

        font-size: 13px;

        line-height: 1.5;
    }


    .login-text {

        margin-top: 18px;

        padding-bottom: 10px;
    }

}



/* =========================================
   VERY SMALL PHONES
========================================= */

@media (max-width: 380px) {

    .signup-right {

        padding-left: 12px;

        padding-right: 12px;
    }


    .signup-box h2 {

        font-size: 27px;
    }


    .subtitle {

        font-size: 13px;
    }


    .password-box button.password-toggle {

        width: 44px;

        height: 44px;
    }

}

