/* ============================================
   KRINJENER — EMERALD · LOGIN
   ============================================ */

:root {
    --accent: #059669;
    --accent-hover: #047857;
    --accent-dark: #065f46;
    --accent-light: #d1fae5;
    --accent-lighter: #ecfdf5;
    --accent-soft: rgba(5, 150, 105, 0.12);

    --bg: #f5faf7;
    --surface: #ffffff;
    --text: #0d2818;
    --text-secondary: #385c4a;
    --text-muted: #6b8779;
    --text-dim: #8ba89b;

    --border: #d5e5dd;
    --border-hover: #b3d1c1;

    --r: 12px;
    --r-sm: 8px;
    --r-md: 14px;

    --shadow-xs: 0 1px 2px rgba(6, 78, 59, 0.04);
    --shadow-sm: 0 1px 3px rgba(6, 78, 59, 0.05), 0 4px 12px rgba(6, 78, 59, 0.04);
    --shadow-accent: 0 6px 20px rgba(5, 150, 105, 0.28);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body { min-height: 100vh; }

.login-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--surface);
}

.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.login-form-inner { width: 100%; max-width: 400px; }

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 17px;
    color: white;
    box-shadow: var(--shadow-accent);
    flex-shrink: 0;
}

.brand-name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.login-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin-bottom: 8px;
}

.login-sub {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.5;
}

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r);
    font-size: 15px;
    color: var(--text);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-group input::placeholder { color: var(--text-dim); }
.form-group input:hover { border-color: var(--border-hover); }
.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.btn-primary {
    width: 100%;
    height: 50px;
    border-radius: var(--r);
    background: var(--accent);
    color: white;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.005em;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-accent);
    transition: all 200ms ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(5, 150, 105, 0.4);
}

.btn-primary:active { transform: translateY(0); }

.error-message {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: var(--r-sm);
    text-align: center;
    font-size: 13.5px;
    font-weight: 500;
}

/* Right visual panel */
.login-visual {
    background: linear-gradient(135deg, #059669 0%, #065f46 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.login-visual::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.login-visual::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    bottom: -150px;
    left: -150px;
}

.login-visual-content {
    position: relative;
    max-width: 420px;
    padding: 48px;
    z-index: 1;
}

.login-visual-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.75;
    margin-bottom: 20px;
}

.login-visual-quote {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.025em;
    margin-bottom: 24px;
}

.login-visual-quote em {
    font-style: normal;
    color: #a7f3d0;
}

.login-visual-author {
    font-size: 13px;
    opacity: 0.75;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-visual-author::before {
    content: '';
    width: 24px;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

/* Lucide icons */
[data-lucide] {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    vertical-align: middle;
    flex-shrink: 0;
}

.brand-mark [data-lucide],
.login-visual [data-lucide] {
    width: 20px;
    height: 20px;
}

@media (max-width: 900px) {
    .login-wrap { grid-template-columns: 1fr; }
    .login-visual { display: none; }
    .login-form-panel { padding: 32px 24px; }
    .login-title { font-size: 28px; }
}
