* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
}

.login-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #764ba2;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

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

label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #555;
    font-weight: 600;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

input#password {
    padding-right: 45px;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #764ba2;
    outline: none;
}

.remember-group {
    display: flex;
    align-items: center;
    text-align: left;
    margin-bottom: 20px;
    cursor: pointer;
    user-select: none;
}

.remember-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #764ba2;
}

.remember-label {
    font-size: 13px;
    color: #555;
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.toggle-password:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.toggle-password svg {
    width: 20px;
    height: 20px;
    fill: #888;
    transition: fill 0.3s;
}

.toggle-password:hover svg {
    fill: #555;
}

.btn-submit {
    position: relative;
    width: 100%;
    padding: 12px;
    background-color: #764ba2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-submit:hover:not(:disabled) {
    background-color: #5a377d;
}

.btn-submit:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.footer-links {
    margin-top: 25px;
    font-size: 12px;
}

.footer-links a {
    color: #667eea;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.error-message, .lock-message {
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 20px;
    display: none;
    text-align: left;
    line-height: 1.4;
}

.error-message {
    background-color: #ffeef0;
    color: #d9383a;
    border: 1px solid #fbc4c4;
}

.lock-message {
    background-color: #fff9e6;
    color: #b27b00;
    border: 1px solid #ffeaa8;
}
