/* Identity Platform login page styles.
   Extracted from templates/identity_platform_login.html (issue #414). */

:root {
    --bg: #0f172a;
    --panel: #111827;
    --panel-border: #334155;
    --text: #f8fafc;
    --muted: #cbd5e1;
    --accent: #0ea5e9;
    --accent-hover: #0284c7;
    --secondary: #1e293b;
    --secondary-hover: #334155;
    --error-bg: rgb(239, 68, 68, 0.14);
    --error-border: rgb(248, 113, 113, 0.45);
    --success-bg: rgb(34, 197, 94, 0.16);
    --success-border: rgb(74, 222, 128, 0.45);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top left, rgb(14, 165, 233, 0.12), transparent 32%),
        radial-gradient(circle at bottom right, rgb(59, 130, 246, 0.08), transparent 35%),
        var(--bg);
    color: var(--text);
    font-family: "Inter", "Segoe UI", sans-serif;
    padding: 2rem;
}

.panel {
    width: min(100%, 38rem);
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 24px 80px rgb(15, 23, 42, 0.45);
}

h1 { margin: 0 0 0.75rem; font-size: 1.75rem; }
p { margin: 0 0 1rem; color: var(--muted); line-height: 1.5; }

.banner {
    display: none;
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    border: 1px solid transparent;
}

.banner.visible { display: block; }

.banner.error {
    background: var(--error-bg);
    border-color: var(--error-border);
}

.banner.success {
    background: var(--success-bg);
    border-color: var(--success-border);
}

.section { display: none; }
.section.visible { display: block; }

.field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

label {
    font-size: 0.95rem;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--panel-border);
    background: rgb(15, 23, 42, 0.75);
    color: var(--text);
    padding: 0.85rem 1rem;
    font-size: 1rem;
}

button {
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: white;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.9rem 1rem;
}

button:hover { background: var(--accent-hover); }

.secondary-button {
    background: var(--secondary);
}

.secondary-button:hover {
    background: var(--secondary-hover);
}

.meta {
    margin-top: 1rem;
    font-size: 0.92rem;
    color: var(--muted);
}

.secret-block {
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--panel-border);
    background: rgb(15, 23, 42, 0.75);
    overflow-wrap: break-word;
}

.form-title {
    font-size: 1.2rem;
    margin: 0 0 1rem;
}

.link-button {
    width: auto;
    margin-top: 1rem;
    padding: 0;
    background: transparent;
    color: var(--accent);
    font-weight: 600;
}

.link-button:hover {
    background: transparent;
    color: var(--accent-hover);
    text-decoration: underline;
}
