* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #4e1621 0%, #6b1f2e 50%, #8a2a3b 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    background: linear-gradient(135deg, #4e1621 0%, #6b1f2e 100%);
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.login-header-content {
    position: relative;
    z-index: 1;
}

.login-logo {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
    padding: 15px;
}

.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}

.login-logo i {
    font-size: 2.5rem;
    color: #4e1621;
}

.login-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-header p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.login-body {
    padding: 2.5rem 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label i {
    color: #4e1621;
    font-size: 1rem;
}

.form-control {
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #4e1621;
    box-shadow: 0 0 0 0.2rem rgba(78, 22, 33, 0.15);
    outline: none;
}

.btn-login {
    background: linear-gradient(135deg, #4e1621 0%, #6b1f2e 100%);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-login:hover {
    background: linear-gradient(135deg, #6b1f2e 0%, #8a2a3b 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(78, 22, 33, 0.4);
    color: white;
}

.btn-login:active {
    transform: translateY(0);
}

.alert {
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: none;
}

.alert-danger {
    background: #fee;
    color: #c33;
    border-left: 4px solid #dc3545;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border-left: 4px solid #28a745;
}

.password-toggle {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.password-toggle-btn:hover {
    color: #4e1621;
}

.info-box {
    background: #f8f9fa;
    border-left: 4px solid #4e1621;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.info-box strong {
    color: #4e1621;
}

@media (max-width: 576px) {
    .login-container {
        border-radius: 15px;
    }

    .login-header {
        padding: 2rem 1.5rem;
    }

    .login-body {
        padding: 2rem 1.5rem;
    }

    .login-header h1 {
        font-size: 1.5rem;
    }

    .login-logo {
        width: 100px;
        height: 100px;
        padding: 10px;
    }
}
