@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #635bff;
    --primary-dark: #5148ed;
    --text: #171923;
    --muted: #777b8a;
    --border: #e5e7ef;
    --background: #f7f8fc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.login-container {
    width: 100%;
    max-width: 1120px;
    min-height: 680px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(32, 36, 70, 0.09);
}

/* Left Banner */

.login-banner {
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(110, 102, 255, 0.35),
            transparent 35%
        ),
        linear-gradient(145deg, #15152f, #20204d 55%, #342d79);

    color: white;
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.login-banner::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    right: -130px;
    bottom: 80px;
}

.login-banner::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    right: -80px;
    bottom: 130px;
}

.brand,
.mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: white;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    font-weight: 800;
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 420px;
    margin: 65px 0;
}

.tagline {
    display: inline-block;
    color: #b9b5ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.banner-content h1 {
    font-size: clamp(38px, 4vw, 51px);
    line-height: 1.17;
    letter-spacing: -2px;
    font-weight: 800;
}

.banner-content h1 span {
    color: #a9a3ff;
}

.banner-content > p {
    color: #c5c5e0;
    font-size: 14px;
    line-height: 1.9;
    margin-top: 24px;
}

.features {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e2e2f4;
    font-size: 13px;
}

.feature-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(119, 111, 255, 0.2);
    color: #b7b1ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.banner-footer {
    position: relative;
    z-index: 1;
    color: #a7a7c9;
    font-size: 11px;
}

/* Right Form */

.login-form-section {
    padding: 55px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-wrapper {
    width: 100%;
    max-width: 370px;
}

.welcome {
    margin-bottom: 35px;
}

.welcome-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #efeeff;
    font-size: 26px;
    margin-bottom: 25px;
}

.welcome h2 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1px;
}

.welcome p {
    color: var(--muted);
    font-size: 13px;
    margin-top: 10px;
    line-height: 1.7;
}

.form-group {
    margin-bottom: 23px;
}

.form-group > label,
.password-label label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.password-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.password-label a {
    color: var(--primary);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    height: 49px;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 0 15px;
    font-family: inherit;
    font-size: 12px;
    outline: none;
    background: #fff;
    transition: 0.2s;
}

input::placeholder {
    color: #a6a8b4;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.1);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 65px;
}

.toggle-password {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--primary);
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2px 0 25px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #626575;
    font-size: 12px;
    cursor: pointer;
}

.remember input {
    width: 15px;
    height: 15px;
    accent-color: var(--primary);
    cursor: pointer;
}

.login-button {
    width: 100%;
    height: 51px;
    border: none;
    border-radius: 9px;
    background: var(--primary);
    color: white;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: 0.2s;
}

.login-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(99, 91, 255, 0.2);
}

.login-button:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.login-button span {
    font-size: 19px;
}

.message {
    font-size: 12px;
    line-height: 1.6;
    margin-top: 15px;
    text-align: center;
}

.message.error {
    color: #d93045;
}

.message.success {
    color: #188653;
}

.divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0 25px;
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #ececf3;
}

.divider span {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #999baa;
}

.security-info {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 17px;
    border: 1px solid #ececf4;
    border-radius: 11px;
    background: #fafaff;
}

.lock-icon {
    color: var(--primary);
    font-size: 21px;
}

.security-info strong {
    font-size: 11px;
}

.security-info p {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.8;
    margin-top: 6px;
}

.signup {
    margin-top: 30px;
    text-align: center;
    color: var(--muted);
    font-size: 11px;
}

.signup a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    margin-left: 3px;
}

.mobile-brand {
    display: none;
}

/* Responsive Design */

@media (max-width: 900px) {
    body {
        padding: 20px;
    }

    .login-container {
        max-width: 520px;
        grid-template-columns: 1fr;
    }

    .login-banner {
        display: none;
    }

    .login-form-section {
        padding: 45px 35px;
    }

    .mobile-brand {
        display: flex;
        justify-content: center;
        margin-bottom: 45px;
        font-size: 22px;
    }

    .mobile-brand .brand-icon {
        background: var(--primary);
        color: white;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
        background: white;
    }

    .login-container {
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }

    .login-form-section {
        padding: 35px 24px;
    }

    .welcome h2 {
        font-size: 27px;
    }

    .welcome {
        margin-bottom: 30px;
    }
}
