/* /resources/css/task-login.css */

body.login-page {
    background-color: #ecf0f1; 
    justify-content: center;
    align-items: center;
    margin: 0;
    box-sizing: border-box;
}

#app-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
}

#login-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto; 
}

.login-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    width: 64px;
    height: 64px;
    margin-bottom: 10px;
}

.login-box h1 {
    font-size: 1.8em;
    color: #2c3e50;
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #34495e;
    font-size: 0.95em;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #3498db;
    outline: none;
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
}

button[type="submit"]:hover:not(:disabled) {
    background-color: #2980b9;
}

button[type="submit"]:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.btn-secondary {
    width: 100%;
    padding: 12px;
    background-color: transparent;
    color: #7f8c8d;
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s;
}
.btn-secondary:hover {
    background-color: #f1f4f6;
    color: #2c3e50;
}

.error-message {
    background-color: #fcebeb;
    color: #c0392b;
    border: 1px solid #c0392b;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
}

#app-container main#content-area {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
}

/* --- Změna hesla specifika --- */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}
.icon-eye {
    position: absolute;
    right: 12px;
    cursor: pointer;
    user-select: none;
    opacity: 0.6;
}
.icon-eye:hover { opacity: 1; }

.password-rules {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #ecf0f1;
}

.password-rules p {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    font-weight: bold;
    color: #2c3e50;
}

.password-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-rules li {
    font-size: 0.85em;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.password-rules li.invalid { color: #e74c3c; }
.password-rules li.valid { color: #2ecc71; font-weight: bold; }
