/* cignyl-sftp 20260824 */
body.auth-body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    background: #fafafa;
    color: #1a1a1a;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 22rem;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.75rem 1.5rem;
}

.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.auth-lead,
.auth-hint,
.auth-links {
    margin: 0 0 1rem;
    color: #444;
    font-size: 0.95rem;
}

.auth-hint {
    font-size: 0.85rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.auth-form label {
    font-size: 0.9rem;
    font-weight: 600;
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
    font: inherit;
    padding: 0.55rem 0.65rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.auth-form button {
    font: inherit;
    font-weight: 600;
    margin-top: 0.5rem;
    padding: 0.6rem 0.75rem;
    border: 0;
    border-radius: 4px;
    background: #1a1a1a;
    color: #fff;
    cursor: pointer;
}

.auth-form button:focus,
.auth-form input:focus,
.auth-links a:focus {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

.auth-error,
.auth-notice {
    margin: 0 0 1rem;
    padding: 0.65rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.auth-error {
    background: #fde8e8;
    color: #8a1f1f;
}

.auth-notice {
    background: #e8f6ee;
    color: #1d5a36;
}

.auth-links {
    margin-top: 1rem;
}

.auth-links a {
    color: #1a1a1a;
}

html.v2-theme-dark {
    color-scheme: dark;
}

html.v2-theme-dark body.auth-body {
    color: #e2e8f0;
    background: #020617;
}

html.v2-theme-dark .auth-card {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.20);
    box-shadow: 0 28px 65px rgba(2, 6, 23, 0.55);
}

html.v2-theme-dark .auth-lead,
html.v2-theme-dark .auth-hint,
html.v2-theme-dark .auth-links {
    color: #94a3b8;
}

html.v2-theme-dark .auth-form input[type="email"],
html.v2-theme-dark .auth-form input[type="password"] {
    background: rgba(15, 23, 42, 0.78);
    border-color: rgba(148, 163, 184, 0.28);
    color: #e2e8f0;
}

html.v2-theme-dark .auth-form button {
    background: #0747a6;
    color: #ffffff;
    border-radius: 2px;
}

html.v2-theme-dark .auth-form button:focus,
html.v2-theme-dark .auth-form input:focus,
html.v2-theme-dark .auth-links a:focus {
    outline-color: rgba(56, 189, 248, 0.65);
}

html.v2-theme-dark .auth-links a {
    color: #7dd3fc;
}

html.v2-theme-dark .auth-error {
    background: rgba(248, 113, 113, 0.24);
    color: #e2e8f0;
}

html.v2-theme-dark .auth-notice {
    background: rgba(34, 197, 94, 0.22);
    color: #e2e8f0;
}
