/**
 * DOC System - Login Stylesheet
 * Premium, luxurious medical system login design (Light Theme)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@600;700&display=swap');

:root {
    --bg-primary: #f4f6fc;
    --bg-secondary: #e9edf7;
    --accent: #f46a15;
    --accent-glow: rgba(244, 106, 21, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(5, 24, 56, 0.08);
    --text-primary: #051838;
    --text-muted: #6b7c99;
    --radius-xl: 24px;
    --shadow-gold: 0 8px 32px rgba(244, 106, 21, 0.12);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background Particles Effect */
.particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(244, 106, 21, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(244, 106, 21, 0.08) 0%, transparent 50%);
}

.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: center;
}

.login-box {
    width: 100%;
    max-width: 420px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    box-shadow: var(--shadow-gold);
    animation: fadeInSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-brand-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.login-logo-img {
    width: 130px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.login-header p {
    color: var(--text-muted);
    font-size: 13.5px;
    letter-spacing: 0.5px;
    margin: 0;
}

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

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
}

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

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #ff8533 0%, #f46a15 50%, #d85608 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--accent-glow);
    filter: brightness(1.1);
}

.login-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* Alerts */
.alert {
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-danger {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: #dc2626;
}

.alert-success {
    background: rgba(13, 150, 104, 0.1);
    border: 1px solid rgba(13, 150, 104, 0.2);
    color: #0d9668;
}

/* Animations */
@keyframes fadeInSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 15px var(--accent-glow);
    }
    100% {
        box-shadow: 0 0 30px rgba(139, 105, 20, 0.3);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .login-box {
        padding: 32px 24px;
    }
    .login-header h1 {
        font-size: 28px;
    }
}
