
/* =====================================================
   TURNONLEARNING — REGISTER PAGE
   Very Soft Blue & Pink
===================================================== */


/* 01. BACKGROUND */

.register-page {
    min-height: 75vh;
    padding: 48px 20px 58px;

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

    background:
        radial-gradient(
            ellipse at 5% 15%,
            rgba(190, 224, 250, 0.16),
            transparent 55%
        ),
        radial-gradient(
            ellipse at 95% 85%,
            rgba(250, 207, 226, 0.14),
            transparent 55%
        ),
        linear-gradient(
            120deg,
            #fafcff 0%,
            #fdfcff 50%,
            #fffafd 100%
        );
}


/* 02. REGISTER CARD */

.register-container {
    width: 100%;
    max-width: 480px;
    padding: 36px 38px 38px;

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

    border: 1px solid #edf0f6;
    border-radius: 20px;

    box-shadow:
        0 12px 35px rgba(60, 85, 125, 0.045);

    box-sizing: border-box;
}


/* 03. TITLE */

.register-heading {
    text-align: center;
    margin-bottom: 27px;
}

.register-heading h1 {
    display: inline-block;
    position: relative;

    margin: 0 0 20px;
    padding-bottom: 13px;

    font-size: clamp(25px, 3vw, 30px);
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -0.5px;

    color: #355b84;
}

.register-heading h1::after {
    content: "";

    position: absolute;
    bottom: 0;
    left: 50%;

    transform: translateX(-50%);

    width: 58px;
    height: 3px;

    border-radius: 10px;

    background: linear-gradient(
        90deg,
        #a8d2f4,
        #d6c4ed
    );
}

.register-heading p {
    max-width: 340px;
    margin: 0 auto;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;

    color: #8290a3;
}


/* 04. FORM */

.register-form .form-group {
    margin-bottom: 19px;
}

.register-form label {
    display: block;
    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 650;

    color: #526b88;
}

.register-form input {
    width: 100%;
    height: 48px;
    padding: 0 15px;

    border: 1px solid #e3e9f1;
    border-radius: 11px;

    background: #fcfdff;

    color: #34465d;
    font-size: 14px;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.register-form input::placeholder {
    color: #a9b3c1;
}

.register-form input:hover {
    border-color: #d3e1ef;
}

.register-form input:focus {
    outline: none;

    border-color: #a6c9ed;
    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(150, 195, 235, 0.10);
}


/* 05. PASSWORD NOTE */

.password-note {
    margin-top: 8px;

    font-size: 11px;
    line-height: 1.55;

    color: #929eae;
}


/* 06. ERRORS */

.register-errors {
    margin-bottom: 20px;
    padding: 12px 14px;

    border: 1px solid #f2dce4;
    border-radius: 10px;

    background: #fff8fa;

    color: #a45b70;
    font-size: 13px;
    line-height: 1.6;
}

.field-error {
    display: block;
    margin-top: 7px;

    font-size: 12px;
    line-height: 1.5;

    color: #b65b73;
}


/* 07. BUTTON */

.register-button {
    width: 100%;
    min-height: 50px;

    margin-top: 8px;
    padding: 12px 18px;

    border: none;
    border-radius: 11px;

    background: linear-gradient(
        110deg,
        #1a7fdd,
        #8da7da
    );

    color: #ffffff;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 4px 12px rgba(80, 120, 175, 0.10);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.register-button:hover {
    background: linear-gradient(
        110deg,
        #639bd3,
        #829cd3
    );

    transform: translateY(-1px);

    box-shadow:
        0 6px 15px rgba(80, 120, 175, 0.14);
}

.register-button:focus-visible {
    outline: 3px solid #bdd9f5;
    outline-offset: 3px;
}


/* 08. LOGIN LINK */

.register-footer {
    margin-top: 24px;
    padding-top: 18px;

    border-top: 1px solid #f0f2f7;

    text-align: center;

    font-size: 13px;
    line-height: 1.6;

    color: #8996a7;
}

.register-footer a {
    margin-left: 4px;

    color: #648fbd;

    font-weight: 700;
    text-decoration: none;
}

.register-footer a:hover {
    color: #bd88aa;
    text-decoration: underline;
}


/* 09. RESPONSIVE */

@media (max-width: 520px) {

    .register-page {
        min-height: 70vh;
        padding: 30px 14px 42px;
    }

    .register-container {
        padding: 30px 23px 32px;
        border-radius: 18px;
    }

    .register-heading {
        margin-bottom: 24px;
    }

    .register-heading h1 {
        font-size: 25px;
    }

    .register-heading p {
        font-size: 13px;
    }

    .register-form .form-group {
        margin-bottom: 17px;
    }

    .register-footer {
        margin-top: 21px;
    }
}


/* 10. ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .register-form input,
    .register-button {
        transition: none;
    }

    .register-button:hover {
        transform: none;
    }
}
