@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;800&display=swap');

/* ==========================================================================
   SAAS AUTOŠKOLA - ELEGANTNÍ SVĚTLÝ DESIGN 2026+
   ========================================================================== */

:root {
    --primary-color: #ea580c;
    --primary-hover: #c2410c;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --input-bg: #f1f5f9;
    --input-border: #e2e8f0;
    
    --success-color: #10b981;
    --error-color: #ef4444;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    background-color: var(--bg-color);
    /* Jemná, čistá mřížka na pozadí celého webu */
    background-image: linear-gradient(rgba(30, 41, 59, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(30, 41, 59, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    position: relative;
    overflow-x: hidden;
    padding: 20px;
}

/* JEMNÝ TEXTOVÝ VODOZNAK NA POZADÍ (Fallback) */
body::before {
    content: var(--watermark-text, ''); 
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    font-size: 12vw;
    font-weight: 800;
    color: rgba(30, 41, 59, 0.02); /* Extrémně slabý břidlicový tón */
    white-space: nowrap;
    z-index: -1;
    pointer-events: none;
    user-select: none;
    text-transform: uppercase;
}

/* HLAVNÍ BÍLÁ KARTA */
.login-box, .auth-container {
    background: var(--card-bg);
    width: 100%;
    max-width: 420px;
    padding: 45px 40px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 15px 35px -5px rgba(30, 41, 59, 0.05); /* Jemný, moderní stín */
    text-align: center;
    position: relative;
    z-index: 10;
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-container h2, .login-box h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-main);
}

.auth-container .subtitle, .auth-container .description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* FORMULÁŘE */
.form-group { margin-bottom: 22px; text-align: left; }
.form-group label {
    display: block; font-size: 0.75rem; color: var(--text-muted);
    text-transform: uppercase; margin-bottom: 8px; font-weight: 600; letter-spacing: 1px;
}

.form-control, input[type="email"], input[type="password"], input[type="text"] {
    width: 100%; padding: 14px 16px; background: var(--input-bg);
    border: 1px solid var(--input-border); color: var(--text-main);
    border-radius: 10px; font-size: 1rem; outline: none; transition: all 0.2s ease;
    font-family: inherit;
}

.form-control:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="text"]:focus {
    background: #ffffff; border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.password-wrapper { position: relative; }
.password-wrapper .toggle-password {
    position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
    cursor: pointer; color: var(--text-muted); transition: color 0.2s; font-size: 1.1rem;
}
.password-wrapper .toggle-password:hover { color: var(--text-main); }

/* TLAČÍTKA */
.btn-submit, .btn-main, button[type="submit"] {
    width: 100%; background: var(--primary-color); color: white;
    border: none; padding: 15px; font-size: 1rem; font-weight: 800;
    border-radius: 10px; cursor: pointer; transition: all 0.2s ease;
    text-transform: uppercase; letter-spacing: 1px; margin-top: 10px;
}

.btn-submit:hover, .btn-main:hover, button[type="submit"]:hover {
    background: var(--primary-hover); transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2);
}

/* ALERTY A HLÁŠKY */
.message, .alert-error {
    padding: 14px; border-radius: 10px; margin-bottom: 20px;
    font-size: 0.9rem; text-align: left; display: flex; align-items: center; gap: 10px;
}
.message-error, .alert-error { background: rgba(239, 68, 68, 0.08); color: var(--error-color); border: 1px solid rgba(239, 68, 68, 0.15); }
.message-success { background: rgba(16, 185, 129, 0.08); color: var(--success-color); border: 1px solid rgba(16, 185, 129, 0.15); }

/* ODKAZY V PATIČCE */
.links-container { 
    margin-top: 30px; 
    font-size: 0.85rem; 
    color: var(--text-muted); 
    display: flex;
    justify-content: center;
    align-items: center;
}
.links-container a, .login-box a { 
    color: var(--text-muted); 
    text-decoration: none; 
    font-weight: 500; 
    transition: all 0.2s ease; 
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
/* Efekty najetí pro odkazy (změna barvy a nepatrné zvětšení ikonky) */
.links-container a:hover, .login-box a:hover { 
    color: var(--primary-color); 
}
.links-container a i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}
.links-container a:hover i {
    transform: scale(1.1);
}
.links-separator { 
    margin: 0 12px; 
    opacity: 0.3; 
}

/* ==========================================================================
   MODERNÍ ZAOBLENÁ PIN POLÍČKA 2026+ (verify.php & reset_password.php)
   ========================================================================== */
.pin-container {
    display: flex;
    justify-content: center;
    gap: 16px; /* Hezké vzdušné mezery */
    margin: 20px 0 30px 0;
}

.pin-box {
    width: 65px;
    height: 75px; /* Mírně obdélníkový tvar působí mnohem elegantněji */
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: 16px; /* Výrazné, moderní zaoblení */
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    font-family: inherit;
}

/* Efekt při prokliknutí (políčko se rozsvítí a mírně nadskočí) */
.pin-box:focus {
    background: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(234, 88, 12, 0.15), inset 0 0 0 1px var(--primary-color);
    transform: translateY(-4px); 
}

/* Skrytí ošklivých šipek pro čísla (Chrome, Safari, Edge, Opera) */
.pin-box::-webkit-outer-spin-button,
.pin-box::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Skrytí šipek pro Firefox */
.pin-box[type=number] {
    -moz-appearance: textfield;
}