/* ===================================================================
   SIMPLE AUTH - LOGIN SCREEN STYLES
   =================================================================== */

/* Login Screen Container */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.5s ease-in;
}

/* Login Background Shapes */
.login-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    opacity: 0.1;
}

.login-bg-shape {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.login-bg-shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.login-bg-shape:nth-child(2) {
    width: 500px;
    height: 500px;
    bottom: -200px;
    right: -200px;
    animation-delay: 5s;
}

.login-bg-shape:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

/* Login Container */
.login-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 48px 40px;
    width: 90%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.5s ease-out;
}

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

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.login-logo i {
    font-size: 36px;
    color: white;
}

.login-header h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    color: #212529;
    font-weight: 700;
}

.login-subtitle {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

/* Form Styles */
#loginForm .form-group {
    margin-bottom: 24px;
}

#loginForm label {
    display: block;
    margin-bottom: 8px;
    color: #495057;
    font-weight: 600;
    font-size: 14px;
}

#loginForm label i {
    margin-right: 6px;
    color: #667eea;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-control {
    flex: 1;
    padding-right: 45px;
}

.password-input-wrapper .toggle-password {
    position: absolute;
    right: 0;
    height: 100%;
    padding: 0 14px;
    background: transparent;
    border: none;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.2s;
}

.password-input-wrapper .toggle-password:hover {
    color: #667eea;
}

#loginForm .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
}

#loginForm .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

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

.btn-login i {
    margin-right: 8px;
}

/* Login Footer */
.login-footer {
    margin-top: 24px;
    text-align: center;
}

.login-footer p {
    margin: 8px 0;
    font-size: 13px;
    color: #6c757d;
}

.default-password-hint {
    padding: 12px;
    background: #e7f3ff;
    border-radius: 6px;
    border-left: 4px solid #0066cc;
}

.default-password-hint i {
    color: #0066cc;
    margin-right: 6px;
}

.default-password-hint code {
    background: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #212529;
}

.security-warning {
    color: #dc3545 !important;
    font-weight: 500;
}

.security-warning i {
    margin-right: 6px;
}

/* Login Error */
.login-error {
    margin-top: 16px;
    padding: 12px 16px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    color: #721c24;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: shake 0.5s;
}

.login-error i {
    font-size: 18px;
}

/* Shake Animation */
.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

/* Change Password Modal Styles */
.password-input-wrapper {
    position: relative;
}

.alert-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 16px 0;
    padding: 12px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    font-size: 14px;
}

.alert-warning i {
    color: #ffc107;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .login-container {
        padding: 32px 24px;
        width: 95%;
        max-width: none;
        margin: 16px;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
    
    .login-logo {
        width: 70px;
        height: 70px;
    }
    
    .login-logo i {
        font-size: 32px;
    }
    
    .btn-login {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .default-password-hint {
        font-size: 12px;
    }
}

/* Print Styles */
@media print {
    .login-screen {
        display: none;
    }
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
