* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e88e5;
    --primary-dark: #1565c0;
    --primary-light: #42a5f5;
    --accent-color: #00acc1;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --text-light: #ffffff;
    --text-gray: #aaaaaa;
    --text-dark: #666666;
    --border-color: #333333;
    --success-color: #00e676;
    --error-color: #d50000;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow: hidden;
    height: 100vh;
}

.login-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.background-slider.active {
    opacity: 1;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.content-logo {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 4;
    max-width: 200px;
    height: auto;
    opacity: 0.9;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.8));
    transition: opacity 2s ease-in-out;
}

.content-logo.fade-in {
    opacity: 0.9;
}

.content-logo.fade-out {
    opacity: 0;
}

.login-container {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 420px;
    padding: 30px 35px;
    background: rgba(10, 10, 10, 0.95);
    border-radius: 20px;
    border: 1px solid rgba(30, 136, 229, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-logo {
    text-align: center;
    margin-bottom: 25px;
}

.logo-image {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 5px 20px rgba(30, 136, 229, 0.5));
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 1.1rem;
    color: var(--text-gray);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.input-group {
    margin-bottom: 20px;
}

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

.input-icon {
    position: absolute;
    left: 20px;
    color: var(--primary-color);
    font-size: 1.2rem;
    z-index: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 18px 14px 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(30, 136, 229, 0.3);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-wrapper input::placeholder {
    color: var(--text-dark);
}

.input-wrapper input:focus {
    border-color: var(--primary-color);
    background: rgba(30, 136, 229, 0.1);
    box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.15);
}

.input-wrapper input:focus ~ .input-icon {
    color: var(--primary-light);
}

.toggle-password {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
    transition: color 0.3s ease;
    z-index: 1;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(30, 136, 229, 0.4);
    margin-top: 20px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(30, 136, 229, 0.6);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login i {
    font-size: 1.1rem;
}

.login-status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    font-size: 0.85rem;
    display: none;
}

.login-status.success {
    background: rgba(0, 230, 118, 0.15);
    color: var(--success-color);
    border: 1px solid var(--success-color);
    display: block;
}

.login-status.error {
    background: rgba(213, 0, 0, 0.15);
    color: var(--error-color);
    border: 1px solid var(--error-color);
    display: block;
}

.login-status.info {
    background: rgba(30, 136, 229, 0.15);
    color: var(--primary-light);
    border: 1px solid var(--primary-color);
    display: block;
}

.login-footer {
    margin-top: 25px;
    text-align: center;
}

.login-footer p {
    font-size: 0.8rem;
    color: #555;
}

@media (max-width: 768px) {
    .login-box {
        padding: 40px 30px;
        max-width: 100%;
    }
    
    .brand-logo h1 {
        font-size: 3rem;
    }
    
    .form-header h2 {
        font-size: 1.1rem;
    }
    
    .content-logo {
        top: 20px;
        left: 20px;
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 35px 25px;
    }
    
    .brand-logo h1 {
        font-size: 2.5rem;
    }
    
    .form-header h2 {
        font-size: 1rem;
    }
    
    .input-wrapper input {
        padding: 16px 18px 16px 50px;
        font-size: 0.95rem;
    }
    
    .btn-login {
        padding: 16px;
        font-size: 1rem;
    }
}
