* {
    box-sizing: border-box;
}

:root {
    --primary: #6d28d9;
    --primary-light: #8b5cf6;
    --primary-soft: #ede9fe;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --white: #ffffff;
    --shadow: 0 24px 80px rgba(76, 29, 149, 0.16);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, #f5f3ff 0, transparent 34%),
        radial-gradient(circle at bottom right, #eef2ff 0, transparent 36%),
        linear-gradient(135deg, #ffffff, #f9fafb);
    overflow-x: hidden;
}

.bg-shape {
    position: fixed;
    border-radius: 999px;
    filter: blur(10px);
    opacity: 0.5;
    z-index: 0;
}

.shape-one {
    width: 320px;
    height: 320px;
    background: #ddd6fe;
    top: -80px;
    right: 10%;
}

.shape-two {
    width: 260px;
    height: 260px;
    background: #c7d2fe;
    bottom: -80px;
    left: 8%;
}

.page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 20px;
}

.login-card {
    width: min(1120px, 100%);
    margin: auto;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 28px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    backdrop-filter: blur(14px);
}

.left-panel {
    padding: 56px;
    background:
        linear-gradient(145deg, rgba(109, 40, 217, 0.08), rgba(255, 255, 255, 0.75)),
        url("../assets/pattern.svg");
    background-size: cover;
}

.right-panel {
    padding: 56px;
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 72px;
}

.logo {
    width: 60px;
    height: 60px;
}

.brand h1 {
    font-size: 26px;
    margin: 0 0 4px;
}

.brand p,
.hero-text p,
.hint,
.feature span {
    color: var(--muted);
}

.pill {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 18px;
}

.hero-text h2 {
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1.02;
    margin: 0 0 18px;
    letter-spacing: -1.8px;
}

.hero-text p {
    font-size: 17px;
    line-height: 1.7;
    max-width: 520px;
}

.feature-grid {
    margin-top: 52px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.feature {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
}

.feature strong {
    display: block;
    margin-bottom: 6px;
}

.feature span {
    font-size: 13px;
    line-height: 1.4;
}

.login-box {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
}

.login-box h3 {
    font-size: 30px;
    margin: 0 0 8px;
}

.hint {
    margin: 0 0 28px;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
}

.input-wrap {
    position: relative;
}

input {
    width: 100%;
    height: 56px;
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 0 16px;
    font-size: 15px;
    outline: none;
    transition: 0.2s ease;
    background: #fff;
}

input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.14);
}

.domain {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 8px;
}

button {
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: 15px;
    margin-top: 24px;
    color: white;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 14px 28px rgba(109, 40, 217, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(109, 40, 217, 0.28);
}

.alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 14px;
}

.quick-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
}

a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

a:hover {
    text-decoration: underline;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 44px;
    font-size: 14px;
}

footer {
    text-align: center;
    color: var(--muted);
    margin-top: 26px;
    font-size: 14px;
}

@media (max-width: 900px) {
    .login-card {
        grid-template-columns: 1fr;
    }

    .right-panel {
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .left-panel,
    .right-panel {
        padding: 34px;
    }

    .brand {
        margin-bottom: 42px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .page {
        padding: 18px;
    }

    .left-panel,
    .right-panel {
        padding: 26px 20px;
    }

    .quick-actions {
        flex-direction: column;
    }

    .hero-text h2 {
        font-size: 34px;
    }
}
