/* kullima-login.css - Synced with cinematic.css platform styling */
:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-secondary: #4B5563;
    --accent-blue: #2563eb;
    --accent-blue-hover: #1d4ed8;
    --input-bg: #f8fafc;
    --input-border: #cbd5e1;
    --focus-ring: rgba(37, 99, 235, 0.1);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

/* Base reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    height: 100vh;
    display: flex;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
}

/* Layout */
.split-container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Left Pane */
.left-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    max-width: 560px;
    background-color: var(--bg-main);
}

/* Right Pane */
.right-pane {
    flex: 1.5;
    background-color: #e2e8f0;
    position: relative;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Login Card */
.login-card {
    background-color: var(--bg-card);
    padding: 2.5rem 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(15, 23, 42, 0.08);
    width: 100%;
    max-width: 420px;
}

/* Logo */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.logo-mark {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-k {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -2px;
    line-height: 1;
}

.logo-dot {
    width: 10px;
    height: 10px;
    background-color: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.5);
    flex-shrink: 0;
    margin-bottom: 12px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Form Steps */
.form-step {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-step.hidden {
    display: none;
}

.form-step.active {
    display: flex;
}

/* Labels */
.field-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Input Group */
.input-group {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

/* Email input specifically needs right padding to avoid overlapping the arrow btn */
.input-group input[type="email"],
.input-group input[type="text"] {
    width: 100%;
    padding: 0.8125rem 3.25rem 0.8125rem 1rem; /* Generous right padding for the button */
    font-size: 0.9375rem;
    font-family: var(--font-body);
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    outline: none;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.input-group input[type="password"] {
    width: 100%;
    padding: 0.8125rem 1rem;
    font-size: 0.9375rem;
    font-family: var(--font-body);
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    outline: none;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.input-group input:focus {
    border-color: var(--accent-blue);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.input-group input.has-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

input::placeholder {
    color: #94a3b8;
}

/* Arrow Next Button */
.icon-btn {
    position: absolute;
    right: 0.5rem;
    background-color: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 6px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    flex-shrink: 0;
}

.icon-btn:hover {
    background-color: var(--accent-blue-hover);
    transform: translateX(1px);
}

/* Primary Button */
.primary-btn {
    background-color: var(--accent-blue);
    color: white;
    border: none;
    padding: 0.8125rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 0.5rem;
}

.primary-btn:hover {
    background-color: var(--accent-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.primary-btn:active {
    transform: scale(0.98);
}

/* Text Button */
.text-btn {
    background: none;
    border: none;
    color: var(--accent-blue);
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    padding: 0;
}

.text-btn:hover {
    text-decoration: underline;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    width: 1rem;
    height: 1rem;
    border-radius: 4px;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: "✓";
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
}

.checkbox-group label {
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Error text */
.error-text {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Links */
.signup-prompt,
.forgot-prompt {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

.signup-prompt a,
.forgot-prompt a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
}

.signup-prompt a:hover,
.forgot-prompt a:hover {
    text-decoration: underline;
}

/* User Email Label (replaces the box-like badge) */
.user-email-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--input-border);
    margin-bottom: 0.5rem;
}

.user-email-label span {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Footer Links */
.footer-links {
    position: absolute;
    bottom: 1.75rem;
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
    body {
        position: fixed;
        overflow: hidden;
        align-items: center;
        justify-content: center;
        background-color: var(--bg-main);
    }

    .split-container {
        flex-direction: column;
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Hide image on mobile — just clean login card in center */
    .right-pane {
        display: none;
    }

    .left-pane {
        flex: 1;
        width: 100%;
        max-width: 100%;
        padding: 2rem 1.5rem;
        justify-content: center;
        align-items: center;
    }

    .login-card {
        max-width: 100%;
        width: 100%;
        padding: 2rem 1.5rem;
    }

    .footer-links {
        position: relative;
        bottom: 0;
        margin-top: 1.5rem;
        justify-content: center;
    }
}
