@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #4C75A3;
    --primary-dark: #35577D;
    --dark: #1D2733;
    --text: #211d32;
    --muted: #777387;
    --background: #f8f7fc;
    --white: #ffffff;
    --border: #e9e6f1;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--background);
}

a {
    text-decoration: none;
    color: inherit;
}

.login-header {
    width: 100%;
    height: 88px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #efedf5;
}

.login-header .brand {
    font-family: 'Manrope', sans-serif;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: #000000;
}

.login-header .brand span {
    color: var(--primary);
}

.login-header a:not(.brand) {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    padding: 12px 22px;
    border: 1px solid #d7e2ee;
    border-radius: 10px;
    transition: 0.25s ease;
}

.login-header a:not(.brand):hover {
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
}

.login-layout {
    width: min(1320px, 92%);
    min-height: 690px;
    margin: 35px auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    background: var(--white);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(53, 87, 125, 0.09);
}

/* LEFT SIDE */

.login-visual {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: clamp(32px, 6vw, 90px);
    background: linear-gradient(
        135deg,
        #4C75A3 0%,
        #35577D 45%,
        #202b42 100%
    );
    color: #fff;
}

.login-visual::after {
    position: absolute;
    right: -100px;
    bottom: -140px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    box-shadow:
        0 0 0 35px rgba(255, 255, 255, 0.025),
        0 0 0 75px rgba(255, 255, 255, 0.025);
    content: "";
    pointer-events: none;
}

.login-visual-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.eyebrow {
    color: #EAF0F6;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.login-visual h1 {
    margin: 22px 0 18px;
    font-family: "Manrope", Arial, sans-serif;
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.login-visual-content > p {
    max-width: 410px;
    margin-bottom: 36px;
    color: #EAF0F6;
    font-size: 16px;
    line-height: 1.8;
}

.login-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 23px;
}

.login-feature > span {
    display: flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 11px;
    color: #EAF0F6;
    font-size: 12px;
    font-weight: 800;
}

.login-feature strong {
    display: block;
    margin: 1px 0 4px;
    font-size: 14px;
}

.login-feature p {
    margin: 0;
    color: #EAF0F6;
    font-size: 13px;
}

.login-register {
    margin-top: 20px;
}

/* RIGHT SIDE */

.login-form-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 55px;
    background: #fff;
}

.login-card {
    width: 100%;
    max-width: 410px;
}

.login-card .welcome {
    margin-bottom: 13px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.login-card h2 {
    margin-bottom: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 35px;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--dark);
}

.login-card .login-description {
    margin-bottom: 35px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.login-card form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-card form label {
    display: block;
    margin-bottom: 9px;
    color: #38334b;
    font-size: 13px;
    font-weight: 700;
}

.login-card input {
    width: 100%;
    height: 55px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 11px;
    outline: none;
    background: #fcfbff;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.login-card input::placeholder {
    color: #aaa6b8;
}

.login-card input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(76, 117, 163, 0.1);
}

.login-card button,
.login-card input[type="submit"] {
    width: 100%;
    height: 56px;
    margin-top: 5px;
    border: none;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(110deg, var(--primary), #6F91B7);
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(76, 117, 163, 0.23);
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-card button:hover,
.login-card input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(76, 117, 163, 0.3);
}

.login-card .signup-prompt {
    margin-top: 28px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.login-card .signup-prompt a {
    color: var(--primary);
    font-weight: 800;
}

.login-card .signup-prompt a:hover {
    text-decoration: underline;
}

.login-error,
.error-message {
    margin-bottom: 20px;
    padding: 13px 15px;
    color: #a32643;
    background: #fff0f3;
    border: 1px solid #ffd8e0;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.6;
}

.login-footer {
    padding: 5px 20px 30px;
    text-align: center;
    color: #9691a6;
    font-size: 12px;
}

/* LOGIN PAGE CORRECTIONS */

body.login-page .login-header > p a:not(.brand) {
    color: #4C75A3 !important;
    background: transparent !important;
    border-color: #D7E2EE;
    font-weight: 700 !important;
    text-decoration: none !important;
}

body.login-page .login-header > p a:not(.brand):hover {
    color: #35577D !important;
    background: transparent !important;
}

/* REMEMBER ME */

body.login-page .login-card form .login-options {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px;
    width: 100%;
    margin: 2px 0 20px;
}

body.login-page .login-card form .login-options .remember-me {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px;
    margin: 0 !important;
    padding: 0 !important;
    color: #66717E;
    font-size: 13px;
    font-weight: 400 !important;
    line-height: 16px;
    white-space: nowrap;
    cursor: pointer;
}

body.login-page .login-card form .login-options .remember-me input[type="checkbox"] {
    display: inline-block !important;
    width: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    height: 16px !important;
    min-height: 16px !important;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    border: initial !important;
    border-radius: 3px !important;
    box-shadow: none !important;
    accent-color: #4C75A3;
    flex: 0 0 16px !important;
    cursor: pointer;
    vertical-align: middle;
}

body.login-page .login-card form .login-options .remember-me span {
    display: inline-block;
    margin: 0;
    padding: 0;
    line-height: 16px;
}

body.login-page .login-card form .login-options .forgot-password {
    color: #4C75A3 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

body.login-page .login-card form .login-options .forgot-password:hover {
    color: #35577D !important;
    text-decoration: underline;
}

/* TABLET */

@media (max-width: 1000px) {
    .login-layout {
        grid-template-columns: 1fr 0.9fr;
    }

    .login-visual {
        padding: 38px;
    }

    .login-form-section {
        padding: 38px;
    }

    .login-visual h1 {
        font-size: 46px;
        letter-spacing: -2px;
    }
}

/* MOBILE */

@media (max-width: 760px) {
    .login-header {
        height: 74px;
        padding: 0 5%;
    }

    .login-header .brand {
        font-size: 26px;
    }

    .login-layout {
        width: 92%;
        margin: 20px auto;
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .login-visual {
        min-height: auto;
        padding: 45px 7%;
    }

    .login-visual h1 {
        font-size: 38px;
    }

    .login-visual-content > p {
        margin-bottom: 24px;
    }

    .login-feature {
        margin-top: 16px;
    }

    .login-form-section {
        padding: 42px 25px;
    }

    .login-card {
        max-width: 460px;
    }

    .login-card h2 {
        font-size: 31px;
    }
}

/* SMALL MOBILE */

@media (max-width: 430px) {
    .login-header {
        padding: 0 18px;
    }

    .login-header .brand {
        font-size: 23px;
    }

    .login-header a:not(.brand) {
        padding: 10px 13px;
        font-size: 12px;
    }

    .login-visual {
        padding: 35px 22px;
    }

    .login-visual h1 {
        font-size: 32px;
    }

    .login-visual-content > p {
        font-size: 14px;
    }

    .login-form-section {
        padding: 35px 20px;
    }

    .login-card h2 {
        font-size: 28px;
    }
}

@media (max-width: 380px) {
    .login-header .brand {
        font-size: 21px;
    }

    .login-header a:not(.brand) {
        padding: 9px 10px;
        font-size: 11px;
    }

    .login-visual h1 {
        font-size: 29px;
    }

    .login-form-section {
        padding: 30px 18px;
    }
}