* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    transition: all 0.2s ease;
}

:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --text-secondary: #a0a0a0;
    --primary-color: #2196F3;
    --primary-dark: #1976D2;
    --error-color: #f44336;
    --success-color: #4CAF50;
    --border-color: #333;
    --input-bg: #2c2c2c;
    --timer-bg: #333;
    --gradient-primary: linear-gradient(135deg, #2196F3, #1976D2);
    --button-shadow: 0 8px 16px rgba(33, 150, 243, 0.2);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Rozšířený kontejner */
.login-container {
    width: 100%;
    max-width: 600px; /* Zvětšení maximální šířky */
    padding: 15px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

/* Modernizace login boxu */
.login-box {
    background-color: var(--card-bg);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(10px);
}

@media (min-width: 500px) {
    .login-box {
        padding: 35px; /* Větší padding na větších obrazovkách */
    }
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-color);
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Minimalistický timer */
.timer-container {
    margin: 0 0 35px 0;
    position: relative;
    height: 6px;
    background: var(--timer-bg);
    border-radius: 3px;
    overflow: hidden;
}

#timer-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 1s linear;
}

#timer-value {
    position: absolute;
    right: 0;
    top: -25px;
    font-size: 14px;
    color: var(--text-secondary);
}

#message {
    padding: 12px;
    margin-bottom: 20px;
    text-align: center;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

#message.error {
    background-color: rgba(244, 67, 54, 0.15);
    border-left: 3px solid var(--error-color);
    color: #ff8a80;
    display: block;
}

/* Styly pro chybové zprávy - přidáme speciální styly pro křížek */
#message.error:only-child {
    font-size: 24px;
    padding: 8px;
    text-align: center;
}

#message.success {
    background-color: rgba(76, 175, 80, 0.15);
    border-left: 3px solid var(--success-color);
    color: #a5d6a7;
    display: block;
}

/* Styly pro kroky přihlášení */
.login-step {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s var(--transition-bounce);
}

.login-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideUp 0.5s var(--transition-bounce) forwards;
}

.step-label {
    font-size: 15px;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
}

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

/* Modernizace input fields */
.input-group input {
    width: 100%;
    padding: 18px 20px;
    background: var(--input-bg);
    border: 2px solid transparent;
    border-radius: 16px;
    color: var(--text-color);
    font-size: 17px;
    transition: all 0.4s var(--transition-bounce);
}

.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.15);
    outline: none;
    transform: translateY(-2px);
}

/* UPRAVENÉ CSS PRO DATUMOVÁ POLE */
/* Modernizace datumových polí */
.date-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin: 30px 0;
}

.date-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.date-field {
    width: calc((100% - 50px) / 6);
    height: 60px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: 16px;
    background-color: var(--input-bg);
    color: var(--text-color);
    transition: all 0.4s var(--transition-bounce);
}

.date-field:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.15);
    outline: none;
    transform: translateY(-3px);
}

.date-field.filled {
    border-color: var(--primary-color);
    background: linear-gradient(to bottom, var(--input-bg), rgba(33, 150, 243, 0.1));
}

/* Odstranit všechna předchozí pravidla pro media queries a speciální mezery */
@media (max-width: 480px) {
    .date-field {
        height: 50px;
        font-size: 18px;
    }
}

/* Modernizace tlačítek */
button {
    width: 100%;
    padding: 18px;
    margin-top: 25px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s var(--transition-bounce);
    box-shadow: var(--button-shadow);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(33, 150, 243, 0.3);
}

button:active {
    transform: translateY(-1px);
}

.info {
    margin-top: 25px;
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
}

/* Animace a efekty */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(33, 150, 243, 0); }
    100% { box-shadow: 0 0 0 0 rgba(33, 150, 243, 0); }
}

@media (max-width: 360px) {
    .login-box {
        padding: 20px;
    }
    
    .date-field {
        height: 45px;
        font-size: 16px;
    }
}

/* Animace přechodů */
@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}