*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #C8102E 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-wrapper {
    width: 100%;
    max-width: 450px;
}

.login-box {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #C8102E;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(200,16,46,0.3);
}

.login-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group-login label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.form-group-login label i {
    color: #C8102E;
}

.form-group-login input {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease;
    background: #f8f8f8;
}

.form-group-login input:focus {
    border-color: #C8102E;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(200,16,46,0.1);
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 16px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
}

.checkbox-label input {
    cursor: pointer;
}

.error-message {
    background: #FFEBEE;
    color: #C62828;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    border-left: 3px solid #C62828;
    display: none;
}

.error-message.show {
    display: block;
    animation: shake 0.4s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #C8102E;
    color: #fff;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.btn-login:hover {
    background: #a00d24;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(200,16,46,0.4);
}

.btn-login:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
}

.back-link {
    text-align: center;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 10px;
    transition: color 0.3s;
}

.back-link:hover {
    color: #C8102E;
}

.login-info {
    margin-top: 25px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 10px;
    text-align: center;
    font-size: 12px;
    color: #666;
}

.login-info p {
    margin: 3px 0;
}

.login-info code {
    background: #1a1a2e;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

@media (max-width: 480px) {
    .login-box { padding: 30px 25px; }
    .login-header h1 { font-size: 20px; }
}