:root {
    color-scheme: light;
    --bg: #f3f7fb;
    --surface: #ffffff;
    --surface-2: #f8fbff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #dce7f3;
    --accent: #0f766e;
    --accent-strong: #115e59;
    --accent-soft: #ccfbf1;
    --danger: #dc2626;
    --danger-soft: #fee2e2;
    --success: #15803d;
    --success-soft: #dcfce7;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, #eef7ff 0%, #f8fafc 100%);
    color: var(--text);
}

.page-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(900px, 100%);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 118, 110, 0.12);
    border-radius: 28px;
    box-shadow: 0 32px 60px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.brand-panel {
    padding: 48px 40px;
    background: linear-gradient(145deg, #0f766e 0%, #115e59 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.brand-badge {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1.6rem;
    margin-bottom: 18px;
}

.brand-logo {
    width: 124px;
    height: 124px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
}

.brand-logo img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    border-radius: 50%;
}

.brand-panel h1 {
    margin: 0 0 16px;
    font-size: 2rem;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.brand-panel p {
    margin: 0;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
    max-width: 320px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.feature-list li {
    background: rgba(255, 255, 255, 0.12);
    padding: 10px 12px;
    border-radius: 12px;
}

.form-panel {
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header {
    margin-bottom: 20px;
}

.form-header h2 {
    margin: 0 0 6px;
    font-size: 1.6rem;
}

.form-header p {
    margin: 0;
    color: var(--muted);
}

.login-form {
    display: grid;
    gap: 16px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text);
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--surface-2);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.btn-primary {
    border: 0;
    border-radius: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 118, 110, 0.2);
}

.alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.alert-error {
    background: var(--danger-soft);
    color: var(--danger);
}

.alert-success {
    background: var(--success-soft);
    color: var(--success);
}

.footer-links {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    text-decoration: underline;
}

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

    .brand-panel,
    .form-panel {
        padding: 28px;
    }
}
