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

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

:root {
    /* FlightPath Brand Colors */
    --midnight-navy: #131E20;
    --latte: #D3BC8D;
    --stratus-grey: #C8C9C7;
    --alloy-grey: #757587;

    --admin-primary: #D3BC8D;
    --admin-secondary: #c2aa7c;
    --admin-accent: #e5d5a8;
    --client-primary: #D3BC8D;
    --client-secondary: #c2aa7c;
    --client-accent: #e5d5a8;
    --text-primary: #131E20;
    --text-secondary: #757587;
    --bg-white: #FFFFFF;
    --bg-gray: #F9FAFB;
    --border-color: #E5E7EB;
    --error-color: #EF4444;
    --success-color: #10B981;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    background: url('../Flightpath_Footer_Desktop.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.login-container {
    width: 100%;
    max-width: 1200px;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
}

.login-card {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 48px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 120px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
    animation: slideUp 0.5s ease-out;
}

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

.logo {
    width: 240px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    object-fit: contain;
    filter: brightness(0);
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-form {
    width: 100%;
}

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

.form-group input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 4px rgba(211, 188, 141, 0.15);
}

.client-card .form-group input:focus {
    border-color: var(--client-primary);
    box-shadow: 0 0 0 4px rgba(211, 188, 141, 0.15);
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    pointer-events: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 14px;
    color: var(--text-secondary);
}

.login-btn {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.admin-btn {
    background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-secondary) 100%);
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(211, 188, 141, 0.4);
}

.client-btn {
    background: linear-gradient(135deg, var(--client-primary) 0%, var(--client-secondary) 100%);
}

.client-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(211, 188, 141, 0.4);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert.error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert.success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

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

.switch-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.switch-link:hover {
    color: var(--text-primary);
}

.switch-link svg {
    width: 16px;
    height: 16px;
}

.decorative-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.admin-bg {
    background: linear-gradient(135deg, var(--midnight-navy) 0%, #1a2c2e 100%);
}

.client-bg {
    background: none;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
}

.bg-shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.2);
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.bg-shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.15);
    bottom: -150px;
    left: -50px;
    animation: float 15s ease-in-out infinite reverse;
}

.bg-shape-3 {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 10s ease-in-out infinite;
}

.airplane-icon {
    position: absolute;
    top: 10%;
    right: 10%;
    opacity: 0.1;
    animation: fly 30s linear infinite;
}

.airplane-icon img {
    width: 200px;
    height: auto;
    opacity: 0.8;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes fly {
    0% { transform: translateX(0) translateY(0) rotate(0deg); }
    25% { transform: translateX(100px) translateY(50px) rotate(5deg); }
    50% { transform: translateX(0) translateY(100px) rotate(0deg); }
    75% { transform: translateX(-100px) translateY(50px) rotate(-5deg); }
    100% { transform: translateX(0) translateY(0) rotate(0deg); }
}

@media (max-width: 640px) {
    .login-card {
        padding: 32px 24px;
        max-width: 100%;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .logo {
        width: 64px;
        height: 64px;
    }
    
    .form-group input {
        padding: 14px 14px 14px 44px;
        font-size: 14px;
    }
    
    .login-btn {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .airplane-icon {
        display: none;
    }
}