/**
 * =====================================================
 * DriveHub - Admin Login Styles
 * =====================================================
 * Autor: Rik-TRIFY
 * Dátum: 9. januára 2026
 * =====================================================
 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light Theme */
.light {
    --bg-primary: #f5f5f5;
    --bg-card: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --input-bg: #ffffff;
    --input-border: #d1d5db;
    --button-gradient-start: #8bc34a;
    --button-gradient-end: #ffc107;
    --header-gradient-start: #8bc34a;
    --header-gradient-mid: #cddc39;
    --header-gradient-end: #ffc107;
    --overlay-opacity: 0.75;
}

/* Dark Theme */
.dark {
    --bg-primary: #1a1a1a;
    --bg-card: #2d2d2d;
    --card-shadow: #000000;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #404040;
    --input-bg: #3d3d3d;
    --input-border: #505050;
    --button-gradient-start: #8bc34a;
    --button-gradient-end: #ffc107;
    --header-gradient-start: #8bc34a;
    --header-gradient-mid: #cddc39;
    --header-gradient-end: #ffc107;
    --overlay-opacity: 0.85;
}

body {
    background-color: var(--bg-primary);
    background-image: url('../assets/obrazky/login-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-primary);
    opacity: var(--overlay-opacity);
    z-index: -1;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin-bottom: 20px;
}

.card-header {
    background: linear-gradient(135deg, var(--header-gradient-start) 0%, var(--header-gradient-mid) 50%, var(--header-gradient-end) 100%);
    padding: 30px 40px;
    text-align: center;
}

.card-header-icon {
    font-size: 48px;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.card-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

.card-header p {
    font-size: 14px;
    color: #2d2d2d;
}

.card-body {
    padding: 40px;
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-primary);
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #8bc34a;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input {
    margin-right: 8px;
}

.forgot-link {
    font-size: 14px;
    color: #ff9800;
    text-decoration: none;
    display: inline-block;
    margin-top: 8px;
}

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

.btn-submit {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--button-gradient-start) 0%, var(--button-gradient-end) 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.alert-error ul {
    list-style: disc;
    padding-left: 20px;
}

.alert-success {
    background: #efe;
    border: 1px solid #cfc;
    color: #3c3;
}

.footer {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #8bc34a;
    text-decoration: none;
}

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