
/* ==========================================================
   TURNONLEARNING — LOGIN PAGE
   Soft Blue / Soft Pink / White
   Responsive Design
========================================================== */


/* ==========================================================
   01. PAGE BACKGROUND
========================================================== */

.login-page {
    min-height: 75vh;
    padding: 36px 18px 48px;

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

    background:
        radial-gradient(
            ellipse at 8% 18%,
            rgba(181, 218, 248, 0.17),
            transparent 52%
        ),
        radial-gradient(
            ellipse at 92% 82%,
            rgba(247, 198, 225, 0.13),
            transparent 52%
        ),
        linear-gradient(
            120deg,
            #fafcff 0%,
            #fdfcff 52%,
            #fffafd 100%
        );
}


/* ==========================================================
   02. MAIN LOGIN CARD
========================================================== */

.login-container {
    width: 100%;
    max-width: 460px;
    box-sizing: border-box;

    padding: 32px 34px;

    background: #ffffff;

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

    box-shadow:
        0 12px 36px rgba(53, 87, 129, 0.055);
}


/* ==========================================================
   03. HEADING
========================================================== */

.login-heading {
    text-align: center;
    margin-bottom: 25px;
}

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

    margin: 0 0 16px;
    padding-bottom: 12px;

    font-size: 28px;
    line-height: 1.25;
    font-weight: 750;

    color: #355b84;
}

.login-heading h1::after {
    content: "";
    position: absolute;

    bottom: 0;
    left: 50%;
    transform: translateX(-50%);

    width: 62px;
    height: 3px;

    border-radius: 10px;

    background: linear-gradient(
        90deg,
        #9cccf2,
        #d7c2ec
    );
}

.login-heading p {
    margin: 0;

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

    color: #8391a4;
}


/* ==========================================================
   04. FORM
========================================================== */

.login-form {
    width: 100%;
}

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

.login-form-group label {
    display: block;
    margin-bottom: 7px;

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

    color: #526b88;
}

.login-form-group input {
    width: 100%;
    height: 46px;

    padding: 0 14px;
    box-sizing: border-box;

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

    background: #fcfdff;

    font-size: 14px;
    color: #344f6c;

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

.login-form-group input::placeholder {
    color: #a3afbe;
}

.login-form-group input:hover {
    border-color: #cbddec;
}

.login-form-group input:focus {
    outline: none;

    border-color: #91bde5;
    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(143, 190, 231, 0.12);
}


/* ==========================================================
   05. PASSWORD FIELD
========================================================== */

.login-password-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-bottom: 7px;
}

.login-password-heading label {
    margin-bottom: 0;
}

.login-forgot-password {
    font-size: 11px;
    font-weight: 600;

    color: #6b99c6;
    text-decoration: none;

    white-space: nowrap;
}

.login-forgot-password:hover {
    color: #3979b5;
    text-decoration: underline;
}

.login-password-field {
    position: relative;
}

.login-password-field input {
    padding-right: 48px;
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;

    transform: translateY(-50%);

    width: 34px;
    height: 34px;

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

    border: none;
    border-radius: 8px;

    background: transparent;
    color: #8da3ba;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.login-password-toggle:hover {
    background: #f0f6fc;
    color: #4e85b9;
}

.login-password-toggle:focus-visible {
    outline: 2px solid #8dbce6;
    outline-offset: 2px;
}


/* ==========================================================
   06. SUBMIT BUTTON
========================================================== */

.login-submit-button {
    width: 100%;
    min-height: 47px;

    margin-top: 5px;

    border: none;
    border-radius: 10px;

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

    color: #ffffff;

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

    cursor: pointer;

    box-shadow:
        0 5px 14px rgba(111, 158, 210, 0.13);

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

.login-submit-button:hover {
    filter: brightness(0.97);

    transform: translateY(-1px);

    box-shadow:
        0 7px 18px rgba(111, 158, 210, 0.18);
}

.login-submit-button:active {
    transform: translateY(0);
}

.login-submit-button:focus-visible {
    outline: 3px solid #b6d7f3;
    outline-offset: 3px;
}


/* ==========================================================
   07. SECURITY NOTE
========================================================== */

.login-security-note {
    margin: 12px 0 0;

    text-align: center;

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

    color: #929eae;
}


/* ==========================================================
   08. DIVIDER
========================================================== */

.login-divider {
    display: flex;
    align-items: center;
    gap: 13px;

    margin: 24px 0 19px;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;

    height: 1px;
    background: #e9eef5;
}

.login-divider span {
    font-size: 11px;
    color: #9aa7b6;

    white-space: nowrap;
}


/* ==========================================================
   09. SOCIAL LOGIN BUTTONS
========================================================== */

.login-social-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.login-social-button {
    min-width: 0;
    min-height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 8px 10px;

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

    background: #ffffff;
    color: #53677e;

    font-family: inherit;
    font-size: 12px;
    font-weight: 650;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.login-social-button svg {
    flex-shrink: 0;
}

.login-social-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.login-social-note {
    margin: 11px 0 0;

    font-size: 10px;
    line-height: 1.6;
    text-align: center;

    color: #a0acba;
}


/* ==========================================================
   10. REGISTER FOOTER
========================================================== */

.login-footer {
    margin-top: 22px;
    padding-top: 18px;

    border-top: 1px solid #edf1f6;

    text-align: center;
}

.login-footer p {
    margin: 0;

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

    color: #8996a6;
}

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

    color: #588fc2;
    font-weight: 700;

    text-decoration: none;
}

.login-footer a:hover {
    color: #3376b5;
    text-decoration: underline;
}


/* ==========================================================
   11. MESSAGES AND ERRORS
========================================================== */

.login-messages {
    margin-bottom: 18px;
}

.login-message,
.login-errors,
.login-field-error {
    border-radius: 9px;

    font-size: 12px;
    line-height: 1.6;
}

.login-message {
    padding: 11px 13px;
    margin-bottom: 8px;
}

.login-message-success {
    background: #eef8f3;
    color: #37765a;
    border: 1px solid #d9eee3;
}

.login-message-error,
.login-errors {
    padding: 11px 13px;

    background: #fff6f8;
    color: #b35b73;

    border: 1px solid #f6e1e8;
}

.login-message-info {
    background: #f0f7ff;
    color: #527ca7;

    border: 1px solid #e0ecf9;
}

.login-errors {
    margin-bottom: 16px;
}

.login-errors ul {
    margin: 0;
    padding-left: 18px;
}

.login-field-error {
    margin-top: 6px;
    color: #bb6179;
}


/* ==========================================================
   12. TABLET
========================================================== */

@media (max-width: 768px) {
    .login-page {
        padding: 30px 16px 42px;
    }

    .login-container {
        max-width: 440px;
        padding: 30px;
    }
}


/* ==========================================================
   13. MOBILE
========================================================== */

@media (max-width: 480px) {
    .login-page {
        min-height: 65vh;
        padding: 22px 12px 35px;
    }

    .login-container {
        padding: 26px 20px;
        border-radius: 16px;
    }

    .login-heading {
        margin-bottom: 22px;
    }

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

    .login-social-options {
        gap: 7px;
    }

    .login-social-button {
        gap: 5px;
        padding: 8px 5px;
        font-size: 11px;
    }

    .login-social-button svg {
        width: 17px;
        height: 17px;
    }

    .login-password-heading {
        flex-wrap: wrap;
    }
}


/* ==========================================================
   14. REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {
    .login-form-group input,
    .login-password-toggle,
    .login-submit-button,
    .login-social-button {
        transition: none;
    }

    .login-submit-button:hover {
        transform: none;
    }
}
