/* FoxKey Gateway Theme - Inspired by Primer Design System */

/* Color Variables */
:root {
    --color-orange: #ffa037;
    --color-orange-dark: #ff8c1a;
    --color-orange-light: #ffd699;
    --color-cream: #fff4e3;
    --color-charcoal: #403836;
    --color-text: #24292e;
    --color-text-secondary: #666;
    --color-bg: #ffffff;
    --color-border: #e1e4e8;
    --color-bg-subtle: #fafbfc;
    --shadow-sm: 0 1px 0 rgba(27, 31, 35, 0.04);
    --shadow-md: 0 3px 12px rgba(27, 31, 35, 0.15);
    --transition: all 0.2s cubic-bezier(0.3, 0, 0.5, 1);
}

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

html {
    font-size: 16px;
}

body {
    font-family:
        "Open Sans",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Helvetica,
        Arial,
        sans-serif,
        "Apple Color Emoji",
        "Segoe UI Emoji";
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
}

/* Typography */
h1 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 12px;
    color: var(--color-text);
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 40px;
    font-weight: 400;
}

/* Logo Section */
.logo-section {
    margin-bottom: 48px;
    animation: fadeInDown 0.6s ease-out;
}

.logo {
    width: 140px;
    height: 140px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 50%;
    padding: 8px;
    box-shadow:
        var(--shadow-md),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5),
        0 0 0 1px rgba(27, 31, 35, 0.15);
    transition: var(--transition);
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.logo:hover {
    transform: translateY(-4px);
    box-shadow:
        0 8px 24px rgba(27, 31, 35, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5),
        0 0 0 1px rgba(27, 31, 35, 0.15);
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -1px;
    margin: 0;
}

/* Content Container */
.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 560px;
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background-color: var(--color-orange);
    color: white;
    text-decoration: none;
    border: 1px solid rgba(27, 31, 35, 0.15);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow:
        0 1px 0 rgba(27, 31, 35, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    white-space: nowrap;
    position: relative;
}

.btn:hover {
    background-color: var(--color-orange-dark);
    box-shadow:
        0 2px 4px rgba(27, 31, 35, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn:active {
    transform: translateY(0);
    box-shadow:
        inset 0 1px 3px rgba(27, 31, 35, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow:
        0 1px 0 rgba(27, 31, 35, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 0 0 3px rgba(255, 160, 55, 0.2);
}

.btn.btn-secondary {
    background-color: #fafbfc;
    color: var(--color-text);
    box-shadow:
        0 1px 0 rgba(27, 31, 35, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.btn.btn-secondary:hover {
    background-color: #f3f4f6;
    color: var(--color-text);
    box-shadow:
        0 2px 4px rgba(27, 31, 35, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.btn.btn-secondary:active {
    background-color: #ebecef;
    box-shadow:
        inset 0 1px 3px rgba(27, 31, 35, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.btn.btn-secondary:focus {
    box-shadow:
        0 1px 0 rgba(27, 31, 35, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 0 0 3px rgba(27, 31, 35, 0.1);
}

/* Disabled Button */
.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    transform: none;
}

.btn.btn-danger {
    background-color: #d1242f;
    color: white;
    box-shadow:
        0 1px 0 rgba(27, 31, 35, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn.btn-danger:hover {
    background-color: #b91c27;
    color: white;
    box-shadow:
        0 2px 4px rgba(209, 36, 47, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn.btn-danger:active {
    background-color: #a5111c;
    box-shadow:
        inset 0 1px 3px rgba(27, 31, 35, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn.btn-danger:focus {
    box-shadow:
        0 1px 0 rgba(27, 31, 35, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 0 3px rgba(209, 36, 47, 0.2);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design - Tablet */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }

    .brand-title {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .logo {
        width: 120px;
        height: 120px;
    }

    .logo-section {
        margin-bottom: 40px;
    }

    .btn {
        padding: 11px 28px;
        font-size: 0.95rem;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 480px) {
    body {
        padding: 24px 12px;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .brand-title {
        font-size: 1.75rem;
    }

    .tagline {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .logo {
        width: 100px;
        height: 100px;
    }

    .logo-section {
        margin-bottom: 32px;
    }

    .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
        width: 100%;
    }
}
