/* ================================================================
   LEITZ GOLF AUTHENTICATION PAGES - CONSOLIDATED STYLES
   ================================================================

   This stylesheet contains all authentication page styles for the
   Leitz Golf fitting system application.

   Dependencies:
   - Bootstrap 5.3.0
   - Bootstrap Icons 1.10.0
   ================================================================ */

/* ================================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ================================================================ */

:root {
    /* Brand Colors - Consistent across all Leitz Golf interfaces */
    --leitz-primary: #1a5d3a;    /* Dark green - primary brand color from logo */
    --leitz-secondary: #ff8c00;  /* Vibrant orange/gold - accent from logo */
    --leitz-light: #f8f9fa;      /* Light background */
}

/* ================================================================
   BASE STYLES & TYPOGRAPHY
   ================================================================ */

body.auth-page {
    background-color: var(--leitz-light);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
}

/* ================================================================
   LAYOUT CONTAINERS
   ================================================================ */

.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--leitz-light) 0%, #e9ecef 100%);
    padding: 1rem;
}

/* ================================================================
   CHAT BUBBLE CARD COMPONENT
   ================================================================ */

.chat-bubble-card {
    background-color: white;
    border-radius: 1.5rem;
    border-bottom-left-radius: 0.5rem;
    box-shadow: 0 8px 32px rgba(26, 93, 58, 0.15);
    border: 1px solid rgba(255, 140, 0, 0.1);
    position: relative;
    max-width: 450px;
    margin: 0 auto;
    animation: slideIn 0.6s ease-out;
}

/* Chat bubble tail */
.chat-bubble-card::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    width: 16px;
    height: 16px;
    background-color: white;
    border-left: 1px solid rgba(255, 140, 0, 0.1);
    border-bottom: 1px solid rgba(255, 140, 0, 0.1);
    transform: rotate(-45deg);
}

/* ================================================================
   BRANDING SECTION
   ================================================================ */

.leitz-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.leitz-icon {
    width: 50px;
    height: 50px;
    background-color: var(--leitz-secondary);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.welcome-text {
    flex: 1;
}

.welcome-text h5 {
    color: var(--leitz-primary);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.welcome-text small {
    color: #6c757d;
    font-size: 0.875rem;
}

/* ================================================================
   LOGO SECTION
   ================================================================ */

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container img {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(26, 93, 58, 0.1));
}

/* ================================================================
   FORM ELEMENTS & FLOATING LABELS
   ================================================================ */

.form-floating {
    margin-bottom: 1rem;
}

.form-floating > .form-control {
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1rem 0.75rem 0.25rem 0.75rem;
    height: calc(3.5rem + 2px);
    transition: all 0.2s ease;
}

.form-floating > .form-control:focus {
    border-color: var(--leitz-secondary);
    box-shadow: 0 0 0 0.2rem rgba(255, 140, 0, 0.15);
}

.form-floating > label {
    color: #6c757d;
    padding: 1rem 0.75rem 0.25rem 0.75rem;
}

/* ================================================================
   CHECKBOX CONTROLS
   ================================================================ */

.form-check-input:checked {
    background-color: var(--leitz-secondary);
    border-color: var(--leitz-secondary);
}

.form-check-input:focus {
    border-color: var(--leitz-secondary);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(255, 140, 0, 0.15);
}

/* ================================================================
   BUTTON COMPONENTS
   ================================================================ */

.btn-login,
.btn-reset {
    background-color: var(--leitz-secondary);
    border: none;
    border-radius: 0.75rem;
    padding: 0.875rem 2rem;
    font-weight: 500;
    color: white;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.btn-login:hover,
.btn-reset:hover {
    background-color: var(--leitz-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 93, 58, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

/* ================================================================
   NAVIGATION LINKS
   ================================================================ */

.forgot-link {
    color: var(--leitz-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.forgot-link:hover {
    color: var(--leitz-primary);
    text-decoration: underline;
}

/* ================================================================
   ALERT STYLING
   ================================================================ */

.alert {
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.2);
    color: #842029;
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    border-color: rgba(25, 135, 84, 0.2);
    color: #0f5132;
}

/* ================================================================
   ANIMATIONS & TRANSITIONS
   ================================================================ */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ================================================================
   CONTENT SECTIONS
   ================================================================ */

.help-text {
    background-color: rgba(255, 140, 0, 0.05);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--leitz-secondary);
}

.help-text p {
    margin-bottom: 0;
    color: #5a6c7d;
    font-size: 0.95rem;
    line-height: 1.5;
}

.back-section {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.back-link {
    color: var(--leitz-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-link:hover {
    color: var(--leitz-primary);
    text-decoration: none;
    transform: translateX(-2px);
}

/* ================================================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ================================================================ */

@media (max-width: 576px) {
    .login-container {
        padding: 0.75rem;
    }

    .chat-bubble-card {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .btn-login,
    .btn-reset {
        width: 100%;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }

    .forgot-link {
        text-align: center;
    }
}

