/* CSS pro nepřihlášené uživatele na home (login stránka) */
body { 
    font-family: Arial, sans-serif; 
    margin: 0; 
    padding: 0;
    background: url('../../img/bcg-login.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* Skryjeme header a sidebar pro nepřihlášené */
header.top-header,
.sidebar {
    display: none !important;
}

.content {
    margin-left: 0 !important;
    padding: 0 !important; /* Reset padding z header.css */
}

.login-container {
    width: 100%;
    max-width: 450px;
    margin: 150px auto 0 auto; /* Zvýšeno pro posunutí dolů */
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}

/* Wider container for desktop */
@media (min-width: 768px) {
    .login-container {
        max-width: 500px;
        padding: 50px;
    }
}

/* Success/error message styling */
.message {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: bold;
    text-align: left;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Adjust for small screen heights */
@media (max-height: 600px) {
    .login-container {
        margin-top: 10px !important;
        padding: 20px !important;
    }
}

/* Register button styling - outside the form */
.register-section {
    margin-top: 30px;
    text-align: center;
}

.register-btn {
    display: inline-block;
    background: rgba(128, 128, 128, 0.8);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.register-btn:hover {
    background: rgba(96, 96, 96, 0.8);
    color: white;
    text-decoration: none;
}

.login-container img {
    max-width: 200px;
    margin-bottom: 20px;
}

.login-container h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: white;
}

.login-container form {
    margin: 0 auto;
}

.login-container input[type="text"],
.login-container input[type="email"],
.login-container input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    box-shadow: 0 0 5px green;
}

.login-container input.error-shadow {
    box-shadow: 0 0 5px red !important;
}

.login-container button {
    background: #ff0000;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin-top: 15px;
}

.login-container button:hover {
    background: #cc0000;
}

.login-container button img {
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
    width: 15px;
    height: 15px;
    max-width: 15px;
    max-height: 15px;
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.login-container a {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
}