/* Auth screens — dark navy background + indigo brand square + white card.
   Theme: solid colors, no gradients. */

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
    background: #0f172a;
    color: #1f2937;
    -webkit-font-smoothing: antialiased;
}

.auth-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* === Brand block (above card) === */

.auth-brand {
    text-align: center;
    margin-bottom: 28px;
}

.auth-brand__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #6366f1;
    border-radius: 12px;
    color: #fff;
    font-size: 24px;
    margin-bottom: 18px;
}

.auth-brand__title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.01em;
    margin: 0;
}

.auth-brand__sub {
    margin-top: 6px;
    font-size: 14px;
    color: #a5b4fc;
    font-weight: 500;
}

/* === Card === */

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    padding: 32px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* === Form === */

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: #111827;
    outline: none;
    transition: border-color 0.12s, box-shadow 0.12s;
    font-family: inherit;
}

.form-group input:hover {
    border-color: #9ca3af;
}

.form-group input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 12px 16px;
    margin-top: 8px;
    background: #6366f1;
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.12s;
    font-family: inherit;
}

.btn-primary:hover {
    background: #4f46e5;
}

.btn-primary:active {
    background: #4338ca;
}

.alert-error {
    margin-bottom: 16px;
    padding: 11px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 3px solid #dc2626;
    border-radius: 6px;
    color: #991b1b;
    font-size: 13px;
    line-height: 1.5;
}

.alert-success {
    margin-bottom: 16px;
    padding: 11px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 3px solid #16a34a;
    border-radius: 6px;
    color: #14532d;
    font-size: 13px;
    line-height: 1.5;
}

.auth-hint {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.6;
    color: #6b7280;
}

.aux-link {
    display: inline-block;
    margin-top: 18px;
    font-size: 13px;
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.12s;
}

.aux-link:hover {
    color: #4338ca;
    text-decoration: underline;
}

.auth-footer {
    margin-top: 28px;
    font-size: 12px;
    color: #475569;
    letter-spacing: 0.04em;
}
