/**
 * Portal Client - Premium UI Styles
 * Modern, elegant design with glassmorphism & animations
 */

/* ===== CSS Variables ===== */
:root {
    /* Primary Colors */
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --primary-light: #7c86ea;
    
    /* Secondary Colors */
    --secondary: #764ba2;
    --secondary-dark: #6b42a3;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    
    /* Background */
    --bg-glass: rgba(255, 255, 255, 0.95);
    
    /* Text */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    
    /* Shadows */
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-md: 12px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-normal: 0.3s ease;
}

/* ===== Reset & Base ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, sans-serif;
    min-height: 100vh;
    background: var(--gradient-primary);
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
}

.login-brand {
    text-align: center;
    margin-bottom: 32px;
}

.login-brand .logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 20px;
    margin-bottom: 16px;
    background: white;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.login-brand .logo-icon {
    font-size: 72px;
    color: white;
    margin-bottom: 12px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.login-brand h1 {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 4px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.login-brand .subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 500;
}

.login-brand .tagline {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    margin-top: 8px;
}

.login-form-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 40px;
    position: relative;
}

.login-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 24px 24px 0 0;
}

.form-input-group {
    position: relative;
    margin-bottom: 24px;
}

.form-input-group i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 20px;
    z-index: 10;
}

.form-input-group input {
    width: 100%;
    padding: 16px 16px 16px 52px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s;
    background: #fff;
    color: #1f2937;
}

.form-input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

.form-input-group input::placeholder {
    color: #9ca3af;
}

.login-btn {
    width: 100%;
    padding: 18px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

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

.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f3f4f6;
    color: #6b7280;
    font-size: 13px;
}

.company-info {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.company-info .contact-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 13px;
    margin: 0 10px;
}

.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
    color: #dc2626;
}

.alert i {
    font-size: 20px;
}

.animated-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

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

.animated-item:nth-child(1) { animation-delay: 0.1s; }
.animated-item:nth-child(2) { animation-delay: 0.2s; }
.animated-item:nth-child(3) { animation-delay: 0.3s; }
.animated-item:nth-child(4) { animation-delay: 0.4s; }
.animated-item:nth-child(5) { animation-delay: 0.5s; }

