/**
 * Highline Adventures - Login Page Styles
 * Glassmorphic login with full-screen background
 */

/* Material Symbols Outlined — self-hosted for reliability */
@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 100 700;
    font-display: block;
    src: url("/static/fonts/material-symbols-outlined.d0caaaf5e067.woff2") format('woff2');
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

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

:root {
    --rgb-dusty-taupe: 213, 110, 79;
    --color-dusty-taupe: #D56E4F;
    --font-family: 'Rubik', 'Roboto', sans-serif;
}

body {
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: rgb(22, 26, 14);
}

/* ── Full-Screen Background ── */

.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: rgb(22, 26, 14);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transform: scale(1.1);
    filter: brightness(0.8);
}

@media (prefers-reduced-motion: no-preference) {
    .login-background {
        animation: subtleZoom 30s ease-in-out infinite alternate;
    }
}

@keyframes subtleZoom {
    0% { transform: scale(1.1); }
    100% { transform: scale(1.15); }
}

/* ── Login Container ── */

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    z-index: 10;
}

/* ── Glass Panel Form ── */

.login-form {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* ── Logo ── */

.login-logo {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo .material-symbols-outlined {
    font-size: 64px;
    color: var(--color-dusty-taupe);
}

/* ── Header ── */

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h1 {
    color: white;
    font-size: 2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.login-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
}

/* ── Error Message ── */

.login-error {
    background: rgba(239, 83, 80, 0.15);
    border: 1px solid rgba(239, 83, 80, 0.4);
    border-radius: 8px;
    padding: 12px;
    color: #ef5350;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 20px;
}

/* ── Form Fields ── */

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

.form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(var(--rgb-dusty-taupe), 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* ── Buttons ── */

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.btn-login {
    flex: 1;
    padding: 14px 24px;
    background: rgba(var(--rgb-dusty-taupe), 1);
    color: rgb(22, 26, 14);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family);
}

.btn-login:hover:not(:disabled) {
    background: rgba(var(--rgb-dusty-taupe), 0.85);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--rgb-dusty-taupe), 0.4);
}

.btn-login:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-cancel {
    flex: 1;
    padding: 14px 24px;
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-cancel:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-cancel:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Apps Menu Button (top right) ── */

.apps-menu-btn {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apps-menu-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.apps-menu-btn .material-symbols-outlined {
    font-size: 24px;
}

/* ── Responsive ── */

@media (max-width: 600px) {
    .login-form {
        padding: 32px 24px;
    }

    .login-header h1 {
        font-size: 1.75rem;
    }

    .login-logo .material-symbols-outlined {
        font-size: 48px;
    }

    .form-actions {
        flex-direction: column;
    }
}
