/* ===== MODERN GRIEHSER LOGIN STYLES - TONED DOWN ===== */

:root {
    /* Brand Colors - More Subtle */
    --primary-red: #b85450;
    --primary-red-dark: #a04844;
    --primary-red-light: #c96b6b;

    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.25);

    /* Colors */
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-600: #6c757d;
    --gray-800: #343a40;

    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BASE STYLES ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* ===== BACKGROUND - MORE SUBTLE ===== */

.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8892b0 0%, #9ba4c7 25%, #b8a8d8 50%, #a67c8a 75%, #7fadca 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(184, 84, 80, 0.05) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    animation: float 25s infinite linear;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 70%;
    right: 20%;
    animation-delay: -7s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 70%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
}

/* ===== LOGIN CONTAINER ===== */

.login-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

/* ===== GLASS CARD ===== */

.glass-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-xl);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.login-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* ===== LOGO SECTION ===== */

.logo-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 6px 20px rgba(184, 84, 80, 0.2);
    animation: pulse 4s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.logo-text h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: -0.5px;
}

.brand-tagline {
    font-size: 0.9rem;
    color: var(--primary-red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.platform-description {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

/* ===== MODERN FORM ===== */

.login-form {
    margin-bottom: 1.5rem;
}

.modern-input {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 1rem;
    padding: 1rem;
    transition: var(--transition);
}

.modern-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.modern-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-red);
    box-shadow: 0 0 0 2px rgba(184, 84, 80, 0.15);
    color: var(--white);
}

.form-floating label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-red-light);
    font-weight: 600;
}

/* ===== MODERN BUTTON ===== */

.modern-btn {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    border: none;
    border-radius: var(--radius-md);
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s;
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(184, 84, 80, 0.25);
    background: linear-gradient(135deg, var(--primary-red-light) 0%, var(--primary-red) 100%);
}

.modern-btn:hover::before {
    left: 100%;
}

.modern-btn:active {
    transform: translateY(0);
}

.modern-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== ALERTS ===== */

.modern-alert {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: var(--white);
    border-left: 4px solid;
    margin-top: 1rem;
}

.alert-danger {
    border-left-color: var(--primary-red);
    background: rgba(184, 84, 80, 0.08);
}

.alert-success {
    border-left-color: #5a9367;
    background: rgba(90, 147, 103, 0.08);
}

/* ===== ADDITIONAL OPTIONS ===== */

.additional-options {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.forgot-password-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.forgot-password-link:hover {
    color: var(--primary-red-light);
    text-decoration: underline;
}

/* ===== FOOTER ===== */

.login-footer {
    margin-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.login-footer p {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-red-light);
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
    }

    .login-card {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }

    .logo-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .logo-text h1 {
        font-size: 1.75rem;
    }

    .geometric-shapes .shape {
        display: none;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem 1rem;
    }

    .logo-circle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .logo-text h1 {
        font-size: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ===== LOADING ANIMATIONS ===== */

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-loading .spinner-border {
    animation: spin 1s linear infinite;
}

/* ===== ACCESSIBILITY ===== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .login-background {
        animation: none;
    }

    .shape {
        animation: none;
    }
}

/* ===== FOCUS STYLES ===== */

.modern-input:focus,
.modern-btn:focus,
.forgot-password-link:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

/* ===== HIGH CONTRAST MODE ===== */

@media (prefers-contrast: high) {
    .glass-card {
        background: rgba(255, 255, 255, 0.95);
        color: var(--gray-800);
    }

    .modern-input {
        background: var(--white);
        color: var(--gray-800);
    }

    .platform-description,
    .form-floating label {
        color: var(--gray-600);
    }
}