/* Login page — split hero layout.
   Used on: login */

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, sans-serif;
    background: #f8fafc;
}

.login-shell {
    display: flex;
    min-height: 100vh;
}

/* Left hero panel -----------------------------------------------------
   No photo is used here — swap the background of .login-hero for a
   background-image (e.g. background: url('/static/img/your-photo.jpg')
   center/cover;) if you'd rather use a real photo instead of the
   network illustration. */
.login-hero {
    position: relative;
    flex: 0 0 44%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 56px;
    overflow: hidden;
    background: linear-gradient(160deg, #0b1120 0%, #111a2e 55%, #16233f 100%);
}

.hero-network {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-network circle {
    fill: #60a5fa;
}

.hero-network circle.node-accent {
    fill: #f59e0b;
}

.hero-network line {
    stroke: rgba(148, 163, 184, 0.35);
    stroke-width: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-network .node-accent {
        animation: pulse 2.8s ease-in-out infinite;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; r: 5; }
    50% { opacity: 0.5; r: 7; }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-wordmark {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 34px;
    font-weight: 600;
    color: #f8fafc;
    margin: 0 0 8px;
    display: block;
    text-decoration: none;
}

.hero-wordmark:focus-visible { outline: 2px solid #60a5fa; outline-offset: 4px; }

.hero-tagline {
    font-size: 15px;
    color: #94a3b8;
    margin: 0;
}

/* Right form panel ------------------------------------------------- */
.login-panel {
    box-sizing: border-box;
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.login-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 8px 24px rgba(15, 23, 42, 0.06);
    padding: 44px 40px;
}

.login-icon-badge {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.login-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 26px;
    font-weight: 600;
    color: #0f172a;
    text-align: center;
    margin: 0 0 6px;
}

.login-subtitle {
    font-size: 14px;
    color: #64748b;
    text-align: center;
    margin: 0 0 32px;
}

.field-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    margin: 0 0 6px;
}

.input-group {
    position: relative;
    margin-bottom: 18px;
}

.input-group .field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    display: flex;
}

.input-group input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px 11px 42px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    color: #0f172a;
    background: #ffffff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.input-group input::placeholder {
    color: #94a3b8;
}

.input-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
}

.toggle-pw:hover {
    color: #64748b;
}

.form-row-between {
    display: flex;
    justify-content: flex-end;
    margin: -6px 0 20px;
}

.forgot-link {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.signup-note {
    font-size: 13px;
    color: #64748b;
    text-align: center;
    margin: 20px 0 0;
}

.signup-note a {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
}

.signup-note a:hover {
    text-decoration: underline;
}

.login-error {
    margin-top: 16px;
    font-size: 13px;
    color: #dc2626;
    text-align: center;
}

.login-error.hidden {
    display: none;
}

/* Collapse the hero panel on narrower screens ----------------------- */
@media (max-width: 860px) {
    .login-hero {
        display: none;
    }
    .login-panel {
        flex: 1;
    }
}
@media (max-width: 480px) {
    .login-panel { padding: 20px 16px; }
    .login-card { padding: 28px 20px; }
    .login-title { font-size: 23px; }
    .input-group input { min-height: 44px; font-size: 16px; }
    .btn-primary { min-height: 44px; }
}
