/* Zajednicki stilovi za login.html i register.html - izvuceno da se ne duplira */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0A0A0C;
    --text-primary: #F2F2F3;
    --text-secondary: #9B9BA1;
    --text-muted: #6E6E76;
    --accent: #3B82F6;
    --accent-3: #60A5FA;
    --gradient: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    --gradient-soft: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(37, 99, 235, 0.12));
    --surface: rgba(255, 255, 255, 0.03);
    --surface-elevated: rgba(20, 20, 23, 0.75);
    --border: rgba(255, 255, 255, 0.09);
    --shadow-glow: 0 8px 24px rgba(59, 130, 246, 0.2);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

/* Jedan suptilan, staticki glow - bez animacije, bez vise boja */
body::before {
    content: '';
    position: fixed;
    z-index: 0;
    top: -220px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 450px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(120px);
    opacity: 0.12;
    background: radial-gradient(circle, var(--accent), transparent 70%);
    transition: opacity 0.4s var(--ease);
}

/* bela tema */
body.light-mode {
    --bg: #EEF0F7;
    --text-primary: #17172B;
    --text-secondary: #55557A;
    --text-muted: #9494AC;
    --surface: rgba(20, 20, 45, 0.035);
    --surface-elevated: rgba(255, 255, 255, 0.75);
    --border: rgba(20, 20, 45, 0.09);
}

body.light-mode::before {
    opacity: 0.06;
}

.auth-container {
    position: relative;
    z-index: 1;
    background: var(--surface-elevated);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-radius: 26px;
    padding: 48px;
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
    animation: fadeInUp 0.5s var(--ease);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Theme Toggle */
.theme-toggle-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: 0.25s var(--ease);
    font-size: 20px;
}

.theme-toggle-btn:hover {
    background: var(--surface);
    color: var(--text-primary);
    transform: rotate(15deg);
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo .logo-icon {
    background: var(--surface);
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    border: 1px solid var(--border);
    margin: 0 auto 16px;
    color: var(--accent);
}

.auth-logo .logo-icon svg {
    width: 44%;
    height: 44%;
}

.auth-logo h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.auth-logo p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 6px;
    transition: color 0.4s var(--ease);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
    transition: color 0.4s var(--ease);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.auth-btn:active {
    transform: translateY(0) scale(0.98);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px;
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.google-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.google-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.forgot-password-link {
    text-align: right;
    margin-top: 8px;
    font-size: 13px;
}

.forgot-password-link a {
    color: var(--text-secondary);
    text-decoration: none;
}

.forgot-password-link a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.4s var(--ease);
}

.auth-link a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #EF4444;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 16px;
    display: none;
}

.success-message {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.2);
    color: #10B981;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 16px;
    display: none;
}

@media (max-width: 480px) {
    .auth-container {
        padding: 32px 24px;
    }
    .auth-logo .logo-icon {
        width: 60px;
        height: 60px;
    }
    .auth-logo h1 {
        font-size: 24px;
    }
}
