* { box-sizing: border-box; }
body.auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%);
    color: #172033;
}
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr minmax(320px, 520px);
}
.auth-hero {
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(59,130,246,0.28), transparent 32%),
        linear-gradient(135deg, #0f172a, #1e3a8a 58%, #2563eb);
}
.auth-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0));
}
.auth-hero--register {
    background:
        radial-gradient(circle at top left, rgba(139,92,246,0.24), transparent 32%),
        linear-gradient(135deg, #111827, #312e81 58%, #4f46e5);
}
.auth-card {
    margin: auto 24px;
    background: rgba(255,255,255,0.95);
    border: 1px solid #e4ebf5;
    border-radius: 26px;
    padding: 28px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}
.auth-card--wide { max-width: 720px; }
.auth-logo {
    font-weight: 800;
    text-align: center;
    color: #2563eb;
    letter-spacing: .8px;
    margin-bottom: 14px;
}
.auth-card h1 { margin: 0 0 8px; font-size: 28px; text-align: center; }
.auth-sub { margin: 0 0 18px; text-align: center; color: #66748f; line-height: 1.6; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form--grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.auth-form__full { grid-column: 1 / -1; }
.auth-form label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 700; }
.auth-form input {
    width: 100%;
    height: 48px;
    border: 1px solid #d6e0ef;
    border-radius: 14px;
    padding: 0 14px;
    font-size: 15px;
    outline: none;
    background: #f8fbff;
}
.auth-form input:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}
.alert {
    border-radius: 14px;
    padding: 13px 14px;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
}
.alert--error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.alert--success { background: #ecfdf5; border: 1px solid #bbf7d0; color: #166534; }
.alert--warning { background: #fffbeb; border: 1px solid #fde68a; color: #a16207; margin: 4px 0 0; }
.auth-btn {
    height: 50px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(37,99,235,.18);
}
.auth-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    font-size: 14px;
}
.auth-links a, .auth-demo { color: #4b5563; }
.auth-links a { text-decoration: none; font-weight: 700; }
.auth-demo { margin-top: 14px; text-align: center; font-size: 14px; }
@media (max-width: 991px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-hero { display: none; }
    .auth-card { margin: 18px; }
}
@media (max-width: 767px) {
    .auth-card { padding: 20px 16px; border-radius: 20px; }
    .auth-card h1 { font-size: 24px; }
    .auth-form--grid { grid-template-columns: 1fr; }
    .auth-links { flex-direction: column; align-items: flex-start; }
}
