* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* KPITB Brand Colors - Teal/Cyan Government Theme */
    --primary: #00a89d;
    --primary-dark: #008b82;
    --primary-light: #4fc3dc;
    --secondary: #1a3c4f;
    --accent-gradient: linear-gradient(135deg, #7b5dc0 0%, #4fc3dc 50%, #00c3d1 100%);
    
    /* Background */
    --bg-main: #f4f7f9;
    --bg-white: #ffffff;
    
    /* Text */
    --text-primary: #1a2d3c;
    --text-secondary: #4a5f6e;
    --text-muted: #7a8a96;
    --text-white: #ffffff;
    
    /* Border */
    --border: #d4e0e6;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
}

.login-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(135deg, #1a3c4f 0%, #0f2a38 50%, #0a1f2d 100%);
}

/* Header with logos */
.login-page-header {
    padding: 0.75rem 1.5rem;
    background: #ffffff;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-bottom: 3px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(90deg, #1FB4A1, #2C69A0);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
}

.header-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.header-logo-left {
    height: 45px;
}

.header-logo-center {
    height: 55px;
}

.header-logo-right {
    height: 40px;
}

.header-left,
.header-center,
.header-right {
    display: flex;
    align-items: center;
}

.header-left {
    flex: 1;
    justify-content: flex-start;
}

.header-center {
    flex: 1;
    justify-content: center;
}

.header-right {
    flex: 1;
    justify-content: flex-end;
}

/* Decorative AI Bot */
.ai-bot-decoration {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 120px;
    height: auto;
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
}

/* Login Container */
.login-container {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}

.login-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.login-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus {
    outline: none;
    border-color: #00a89d;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(0, 168, 157, 0.2);
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #00a89d 0%, #008b82 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 168, 157, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.error-message {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.5);
    color: #ff6b6b;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-page-header {
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }
    
    .header-logo-left {
        height: 35px;
    }
    
    .header-logo-center {
        height: 45px;
    }
    
    .header-logo-right {
        height: 30px;
    }
    
    .ai-bot-decoration {
        width: 80px;
        bottom: 10px;
        right: 10px;
    }
    
    .login-card {
        padding: 30px 25px;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .login-page-header {
        flex-direction: column;
        padding: 0.5rem;
    }
    
    .header-left,
    .header-center,
    .header-right {
        justify-content: center;
    }
}
