/*
 * Agilify Brand Color System
 * Single source of truth for all gateway-served HTML pages
 * (maintenance, error pages, etc.)
 *
 * Update colors here to apply everywhere automatically.
 */

@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

:root {
    /* Brand Colors — Emerald Green */
    --color-primary: #059669;
    --color-primary-dark: #047857;
    --color-primary-light: #34d399;
    --color-primary-lighter: #d1fae5;

    /* Dark Theme */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-primary: #334155;
    --border-secondary: #475569;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-lg: rgba(0, 0, 0, 0.5);
}

/* ==========================================
   BASE STYLES
   ========================================== */

body {
    font-family: 'Ubuntu', system-ui, sans-serif;
    background: var(--bg-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Subtle background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 25% 25%, var(--bg-secondary) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, var(--bg-tertiary) 0%, transparent 50%);
    opacity: 0.3;
    z-index: -1;
}

/* ==========================================
   SHARED COMPONENTS
   ========================================== */

.container {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-primary);
    box-shadow: 0 25px 50px var(--shadow-lg);
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h1 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 500;
}

p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn-primary {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Ubuntu', system-ui, sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-secondary);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 400;
    font-family: 'Ubuntu', system-ui, sans-serif;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-light);
}

/* ==========================================
   STATUS INDICATOR (pulse animation)
   ========================================== */

.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 50%;
    margin-right: 10px;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px rgba(5, 150, 105, 0.5);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 10px rgba(5, 150, 105, 0.5);
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
        box-shadow: 0 0 20px rgba(5, 150, 105, 0.7);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 10px rgba(5, 150, 105, 0.5);
    }
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .container {
        padding: 2rem;
        margin: 1rem;
    }

    .logo {
        font-size: 2.2rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .btn-primary {
        padding: 12px 24px;
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    .status-indicator {
        animation: none;
    }

    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
}
