/**
 * Aquila Auth - Base Styles
 * 
 * Foundation styles for authentication pages including:
 * - CSS Variables (Design Tokens)
 * - Reset & Normalize
 * - Typography
 * - Utility Classes
 * 
 * @package Aquila_Admin
 * @version 1.0.0
 */

/* ==========================================================================
   CSS Variables - Design Tokens
   ========================================================================== */
:root {
    /* Brand Colors - Primary Palette */
    --aquila-sage: #6B8E6B;
    --aquila-sage-light: #8FB08F;
    --aquila-sage-dark: #4A6B4A;
    --aquila-sage-hover: #5A7A5A;
    
    /* Brand Colors - Background */
    --aquila-cream: #F5F3EF;
    --aquila-cream-dark: #EBE8E2;
    --aquila-cream-light: #FAF9F7;
    
    /* Brand Colors - Accent */
    --aquila-terracotta: #C67C52;
    --aquila-terracotta-light: #D99A76;
    --aquila-terracotta-dark: #A86340;
    
    /* Brand Colors - Premium */
    --aquila-gold: #C4A35A;
    --aquila-gold-light: #D9BE82;
    
    /* Neutrals */
    --aquila-text: #3D3D3D;
    --aquila-text-light: #6B6B6B;
    --aquila-text-lighter: #999999;
    --aquila-border: #E0DDD7;
    --aquila-border-light: #EEEBE7;
    --aquila-white: #FFFFFF;
    --aquila-black: #1A1A1A;
    
    /* Semantic Colors */
    --aquila-success: #52A862;
    --aquila-success-light: #E8F5E9;
    --aquila-error: #D84444;
    --aquila-error-light: #FFEBEE;
    --aquila-warning: #F59E0B;
    --aquila-warning-light: #FFF7E6;
    --aquila-info: #3B82F6;
    --aquila-info-light: #EFF6FF;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(107, 142, 107, 0.08);
    --shadow-sm: 0 2px 8px rgba(107, 142, 107, 0.12);
    --shadow-md: 0 4px 16px rgba(107, 142, 107, 0.16);
    --shadow-lg: 0 8px 24px rgba(107, 142, 107, 0.2);
    --shadow-xl: 0 16px 40px rgba(107, 142, 107, 0.24);
    
    /* Glass Morphism Effects */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(107, 142, 107, 0.15);
    
    /* Spacing Scale */
    --space-xs: 0.25rem;   /* 4px */
    --space-sm: 0.5rem;    /* 8px */
    --space-md: 1rem;      /* 16px */
    --space-lg: 1.5rem;    /* 24px */
    --space-xl: 2rem;      /* 32px */
    --space-2xl: 3rem;     /* 48px */
    --space-3xl: 4rem;     /* 64px */
    
    /* Border Radius */
    --radius-sm: 0.375rem; /* 6px */
    --radius-md: 0.5rem;   /* 8px */
    --radius-lg: 0.75rem;  /* 12px */
    --radius-xl: 1rem;     /* 16px */
    --radius-2xl: 1.5rem;  /* 24px */
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-Index Scale */
    --z-base: 1;
    --z-overlay: 10;
    --z-modal: 100;
    --z-notification: 1000;
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
    
    /* Font Sizes */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */
    --text-4xl: 2.25rem;   /* 36px */
    
    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;
    
    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
}

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

body.login {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--aquila-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Remove default WordPress login body styles */
body.login {
    background: var(--aquila-cream) !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

/* ==========================================================================
   Typography Utilities
   ========================================================================== */
.aquila-auth-heading {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--aquila-text);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-md);
}

.aquila-auth-subheading {
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    color: var(--aquila-text-light);
    line-height: var(--leading-normal);
}

.aquila-auth-text-sm {
    font-size: var(--text-sm);
    color: var(--aquila-text-light);
}

.aquila-auth-text-xs {
    font-size: var(--text-xs);
    color: var(--aquila-text-lighter);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

/* Spacing Utilities */
.aquila-mt-xs { margin-top: var(--space-xs); }
.aquila-mt-sm { margin-top: var(--space-sm); }
.aquila-mt-md { margin-top: var(--space-md); }
.aquila-mt-lg { margin-top: var(--space-lg); }
.aquila-mt-xl { margin-top: var(--space-xl); }

.aquila-mb-xs { margin-bottom: var(--space-xs); }
.aquila-mb-sm { margin-bottom: var(--space-sm); }
.aquila-mb-md { margin-bottom: var(--space-md); }
.aquila-mb-lg { margin-bottom: var(--space-lg); }
.aquila-mb-xl { margin-bottom: var(--space-xl); }

.aquila-px-md { padding-left: var(--space-md); padding-right: var(--space-md); }
.aquila-py-md { padding-top: var(--space-md); padding-bottom: var(--space-md); }

/* Display Utilities */
.aquila-flex { display: flex; }
.aquila-flex-col { flex-direction: column; }
.aquila-items-center { align-items: center; }
.aquila-justify-center { justify-content: center; }
.aquila-justify-between { justify-content: space-between; }

/* Text Alignment */
.aquila-text-center { text-align: center; }
.aquila-text-left { text-align: left; }
.aquila-text-right { text-align: right; }

/* Visibility */
.aquila-hidden { display: none; }
.aquila-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================================================
   Animation Keyframes
   ========================================================================== */
@keyframes aquila-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aquila-fade-in-scale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes aquila-slide-in-right {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes aquila-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes aquila-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Animation Utilities */
.aquila-animate-fade-in {
    animation: aquila-fade-in 0.4s var(--transition-base) forwards;
}

.aquila-animate-fade-in-scale {
    animation: aquila-fade-in-scale 0.3s var(--transition-base) forwards;
}

.aquila-animate-slide-in {
    animation: aquila-slide-in-right 0.4s var(--transition-base) forwards;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
/* Mobile: 0-639px (default) */
/* Tablet: 640px-1023px */
/* Desktop: 1024px+ */

@media (max-width: 639px) {
    :root {
        --text-3xl: 1.5rem;   /* 24px on mobile */
        --text-2xl: 1.25rem;  /* 20px on mobile */
    }
    
    body.login {
        padding: var(--space-md);
    }
}

@media (min-width: 640px) {
    /* Tablet styles */
}

@media (min-width: 1024px) {
    /* Desktop styles */
}
