/* =========================================================
   LEARNOVA ACADEMY
   LOGIN + REGISTRATION DESIGN
   ========================================================= */


/* =========================================================
   ROOT
   ========================================================= */

:root {
    --primary: #5267d9;
    --primary-dark: #4054c4;
    --secondary: #7868e6;

    --text-dark: #24345f;
    --text: #4f5d78;
    --text-light: #7f8ba5;

    --white: #ffffff;
    --background: #f4f6fc;

    --border: #e5e8f2;
    --success: #1f9d68;
    --danger: #d94b61;

    --shadow: 0 25px 70px rgba(52, 67, 120, 0.15);
    --radius: 28px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family: "Cairo", "Segoe UI", Arial, sans-serif;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(120, 104, 230, 0.10),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(82, 103, 217, 0.10),
            transparent 30%
        ),
        var(--background);

    color: var(--text-dark);
}


/* =========================================================
   MAIN AUTH PAGE
   ========================================================= */

.auth-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 24px;
}


/* =========================================================
   MAIN CONTAINER
   ========================================================= */

.auth-wrapper {
    width: 100%;
    max-width: 1180px;

    min-height: 690px;

    display: grid;
    grid-template-columns: 44% 56%;

    background: var(--white);

    border-radius: var(--radius);

    overflow: hidden;

    box-shadow: var(--shadow);

    position: relative;
}


/* =========================================================
   LEFT BRAND SECTION
   ========================================================= */

.auth-brand {
    position: relative;

    min-height: 690px;

    padding: 48px;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    color: var(--white);

    background:
        linear-gradient(
            145deg,
            #5267d9 0%,
            #5e67d8 45%,
            #7868e6 100%
        );
}


/* Decorative circles */

.auth-brand::before {
    content: "";

    position: absolute;

    width: 330px;
    height: 330px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.07);

    top: -130px;
    right: -120px;
}


.auth-brand::after {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.06);

    bottom: -110px;
    left: -100px;
}


/* =========================================================
   LOGO
   ========================================================= */

.auth-brand .logo {
    position: relative;

    z-index: 2;

    font-size: 28px;
    font-weight: 800;

    letter-spacing: -0.5px;

    color: #ffffff;
}


.auth-brand .logo span {
    color: #dfe4ff;
}


/* =========================================================
   BRAND CONTENT
   ========================================================= */

.brand-content {
    position: relative;

    z-index: 2;

    flex: 1;

    display: flex;
    flex-direction: column;

    justify-content: center;

    max-width: 440px;

    margin: 0 auto;

    width: 100%;
}


/* =========================================================
   BRAND ICON
   ========================================================= */

.brand-icon {
    width: 82px;
    height: 82px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 28px;

    border-radius: 24px;

    font-size: 39px;

    background: rgba(255, 255, 255, 0.13);

    border: 1px solid rgba(255, 255, 255, 0.18);

    box-shadow:
        0 15px 35px rgba(32, 45, 110, 0.18);

    backdrop-filter: blur(10px);
}


/* =========================================================
   BRAND TITLE
   ========================================================= */

.brand-content h1 {
    margin: 0 0 20px;

    font-size: 42px;

    line-height: 1.25;

    font-weight: 800;

    letter-spacing: -1px;

    color: #ffffff;
}


.brand-content h1 span {
    color: #e1e4ff;
}


/* =========================================================
   BRAND DESCRIPTION
   ========================================================= */

.brand-content p {
    margin: 0;

    max-width: 420px;

    font-size: 16px;

    line-height: 1.9;

    color: rgba(255, 255, 255, 0.82);
}


/* =========================================================
   ACADEMIC ITEMS
   ========================================================= */

.academic-items {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-top: 38px;
}


.academic-item {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    font-size: 23px;

    background: rgba(255, 255, 255, 0.12);

    border: 1px solid rgba(255, 255, 255, 0.14);

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}


.academic-item:hover {
    transform: translateY(-5px);

    background: rgba(255, 255, 255, 0.20);
}


/* =========================================================
   RIGHT FORM SECTION
   ========================================================= */

.auth-form-section {
    position: relative;

    padding: 65px 72px;

    display: flex;
    flex-direction: column;

    justify-content: center;

    background: #ffffff;
}


/* =========================================================
   FORM HEADER
   ========================================================= */

.form-header {
    margin-bottom: 34px;
}


.form-header h2 {
    margin: 0 0 8px;

    font-size: 32px;

    font-weight: 800;

    letter-spacing: -0.5px;

    color: var(--text-dark);
}


.form-header p {
    margin: 0;

    font-size: 14px;

    line-height: 1.7;

    color: var(--text-light);
}


/* =========================================================
   MESSAGE
   ========================================================= */

.message {
    padding: 13px 16px;

    margin-bottom: 22px;

    border-radius: 12px;

    font-size: 13px;

    line-height: 1.6;
}


.message.success {
    color: var(--success);

    background: rgba(31, 157, 104, 0.08);

    border: 1px solid rgba(31, 157, 104, 0.18);
}


.message.error {
    color: var(--danger);

    background: rgba(217, 75, 97, 0.08);

    border: 1px solid rgba(217, 75, 97, 0.18);
}


/* =========================================================
   FORM
   ========================================================= */

.auth-form-section form {
    width: 100%;
}


/* =========================================================
   FORM GROUP
   ========================================================= */

.form-group {
    margin-bottom: 20px;
}


.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;

    font-weight: 700;

    color: var(--text-dark);
}


/* =========================================================
   INPUT
   ========================================================= */

.form-group input {
    width: 100%;

    height: 52px;

    padding: 0 17px;

    border: 1px solid var(--border);

    border-radius: 13px;

    outline: none;

    background: #fafbfe;

    color: var(--text-dark);

    font-family: inherit;

    font-size: 14px;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}


.form-group input::placeholder {
    color: #a5aec0;
}


.form-group input:hover {
    background: #ffffff;

    border-color: #d5daea;
}


.form-group input:focus {
    background: #ffffff;

    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(82, 103, 217, 0.10);
}


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.submit-btn {
    width: 100%;

    height: 54px;

    margin-top: 8px;

    border: none;

    border-radius: 14px;

    cursor: pointer;

    font-family: inherit;

    font-size: 15px;

    font-weight: 700;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );

    box-shadow:
        0 12px 25px rgba(82, 103, 217, 0.22);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.25s ease;
}


.submit-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 16px 32px rgba(82, 103, 217, 0.28);
}


.submit-btn:active {
    transform: translateY(0);

    box-shadow:
        0 8px 18px rgba(82, 103, 217, 0.20);
}


/* =========================================================
   LOGIN / REGISTER LINK
   ========================================================= */

.login-link {
    margin-top: 25px;

    text-align: center;

    font-size: 13px;

    color: var(--text-light);
}


.login-link a {
    margin-left: 4px;

    color: var(--primary);

    font-weight: 700;

    text-decoration: none;

    transition: color 0.2s ease;
}


.login-link a:hover {
    color: var(--primary-dark);

    text-decoration: underline;
}


/* =========================================================
   PASSWORD INPUT
   ========================================================= */

input[type="password"] {
    letter-spacing: 1px;
}


/* =========================================================
   AUTOFILL
   ========================================================= */

.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-dark);

    box-shadow: 0 0 0 1000px #fafbfe inset;

    transition: background-color 5000s ease-in-out 0s;
}


/* =========================================================
   SELECTION
   ========================================================= */

::selection {
    background: rgba(82, 103, 217, 0.20);

    color: var(--text-dark);
}


/* =========================================================
   LARGE SCREENS
   ========================================================= */

@media (min-width: 1300px) {

    .auth-wrapper {
        max-width: 1220px;
    }

    .auth-brand {
        padding: 55px;
    }

    .auth-form-section {
        padding-left: 85px;
        padding-right: 85px;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 950px) {

    .auth-wrapper {
        grid-template-columns: 1fr;

        max-width: 650px;

        min-height: auto;
    }

    .auth-brand {
        min-height: 390px;

        padding: 40px;
    }

    .brand-content {
        justify-content: center;

        max-width: 500px;
    }

    .brand-content h1 {
        font-size: 34px;
    }

    .brand-content p {
        max-width: 100%;
    }

    .academic-items {
        margin-top: 25px;
    }

    .auth-form-section {
        padding: 50px 45px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .auth-page {
        padding: 15px;
    }

    .auth-wrapper {
        border-radius: 22px;
    }

    .auth-brand {
        min-height: 350px;

        padding: 30px 25px;
    }

    .auth-brand .logo {
        font-size: 24px;
    }

    .brand-content {
        margin-top: 25px;
    }

    .brand-icon {
        width: 65px;
        height: 65px;

        margin-bottom: 20px;

        border-radius: 19px;

        font-size: 30px;
    }

    .brand-content h1 {
        font-size: 29px;

        letter-spacing: -0.5px;
    }

    .brand-content p {
        font-size: 13px;

        line-height: 1.8;
    }

    .academic-items {
        gap: 9px;

        margin-top: 23px;
    }

    .academic-item {
        width: 45px;
        height: 45px;

        border-radius: 13px;

        font-size: 19px;
    }

    .auth-form-section {
        padding: 40px 25px;
    }

    .form-header {
        margin-bottom: 27px;
    }

    .form-header h2 {
        font-size: 27px;
    }

    .form-header p {
        font-size: 13px;
    }

    .form-group {
        margin-bottom: 17px;
    }

    .form-group input {
        height: 50px;

        font-size: 13px;
    }

    .submit-btn {
        height: 52px;

        font-size: 14px;
    }

    .login-link {
        font-size: 12px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .auth-page {
        padding: 10px;
    }

    .auth-brand {
        min-height: 330px;

        padding: 25px 20px;
    }

    .auth-form-section {
        padding: 35px 20px;
    }

    .brand-content h1 {
        font-size: 26px;
    }

    .academic-item {
        width: 42px;
        height: 42px;
    }
}


.forgot-password {
    text-align: right;
    margin-top: -8px;
    margin-bottom: 20px;
}

.forgot-password a {
    color: #5b4bdb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.forgot-password a:hover {
    text-decoration: underline;
}