* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, Arial, sans-serif;
    background:
            radial-gradient(circle at top left, rgba(30, 102, 255, 0.18), transparent 34%),
            radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.14), transparent 32%),
            #f6f8fc;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-page {
    width: 100%;
    max-width: 1120px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 34px;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.login-brand {
    padding: 58px;
    background:
            linear-gradient(135deg, rgba(30, 102, 255, 0.95), rgba(15, 23, 42, 0.96)),
            #1e66ff;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.login-brand::before,
.login-brand::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
}

.login-brand::before {
    width: 220px;
    height: 220px;
    top: -70px;
    right: -70px;
}

.login-brand::after {
    width: 160px;
    height: 160px;
    bottom: -50px;
    left: -40px;
}

.brand-content {
    position: relative;
    z-index: 2;
}

.logo-badge {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(255,255,255,0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 22px;
    margin-bottom: 28px;
    border: 1px solid rgba(255,255,255,0.25);
}

.login-brand h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1.05;
    letter-spacing: -1.4px;
}

.login-brand p {
    margin: 18px 0 0;
    color: rgba(255,255,255,0.82);
    font-size: 17px;
    line-height: 1.7;
    max-width: 440px;
}

.feature-list {
    margin-top: 34px;
    display: grid;
    gap: 14px;
}

.feature-item {
    display: flex;
    gap: 12px;
    align-items: center;
    color: rgba(255,255,255,0.9);
    font-weight: 700;
    font-size: 14px;
}

.feature-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.login-panel {
    padding: 58px 48px;
    background: rgba(255,255,255,0.92);
}

.login-card {
    max-width: 430px;
    margin: 0 auto;
}

.eyebrow {
    color: #1e66ff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.login-card h2 {
    margin: 0;
    font-size: 31px;
    letter-spacing: -0.8px;
    color: #0f172a;
}

.login-card .intro {
    margin: 12px 0 26px;
    color: #64748b;
    line-height: 1.6;
}

.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 14px 16px;
    border-radius: 15px;
    margin-bottom: 18px;
    font-weight: 700;
    border: 1px solid #fecaca;
}

form {
    display: grid;
    gap: 17px;
}

label {
    display: block;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 8px;
    color: #0f172a;
}

input {
    width: 100%;
    padding: 15px 16px;
    border-radius: 15px;
    border: 1px solid #dbe3ef;
    background: #fff;
    color: #0f172a;
    font-size: 15px;
    outline: none;
    transition: 0.2s ease;
}

input:focus {
    border-color: #1e66ff;
    box-shadow: 0 0 0 4px rgba(30,102,255,0.12);
}

.password-wrap {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 41px;
    border: 0;
    background: #f1f5f9;
    color: #475569;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.login-btn {
    width: 100%;
    margin-top: 8px;
    padding: 15px 18px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #1e66ff, #0f4fd6);
    color: white;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(30,102,255,0.24);
    transition: 0.2s ease;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(30,102,255,0.3);
}

.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 800;
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    background: #e2e8f0;
    flex: 1;
}

.register-btn {
    display: block;
    text-align: center;
    width: 100%;
    padding: 15px 18px;
    border-radius: 16px;
    background: #fff;
    color: #1e66ff;
    border: 1px solid #dbeafe;
    text-decoration: none;
    font-size: 15px;
    font-weight: 900;
    transition: 0.2s ease;
}

.return-btn {

    display: block;
    text-align: center;
    width: 100%;
    padding: 15px 18px;
    border-radius: 16px;
    background: #25d366;
    color: #ffffff;
    border: 1px solid #dbeafe;
    text-decoration: none;
    font-size: 15px;
    font-weight: 900;
    transition: 0.2s ease;
    margin-top: 15px;

}

.register-btn:hover {
    background: #eff6ff;
    transform: translateY(-1px);
}

.small-note {
    margin-top: 24px;
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
    text-align: center;
}

.small-note a {
    color: #1e66ff;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 900px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .login-brand {
        padding: 38px 30px;
    }

    .login-brand h1 {
        font-size: 34px;
    }

    .login-panel {
        padding: 38px 28px;
    }
}

@media (max-width: 520px) {
    body {
        padding: 14px;
        align-items: flex-start;
    }

    .login-page {
        border-radius: 26px;
    }

    .login-brand {
        padding: 32px 24px;
    }

    .login-panel {
        padding: 32px 22px;
    }

    .login-card h2 {
        font-size: 26px;
    }

    .login-brand h1 {
        font-size: 30px;
    }
}
