/* Authentication Styles - Mr. Potter Art Cafe Theme */
.auth-container {
    min-height: calc(100vh - var(--header-height, 80px));
    margin-top: var(--header-height, 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-light, #FDF8F3) 0%, #F5F1ED 100%);
    padding: 2rem 1rem;
    position: relative;
}

.auth-card {
    background: white;
    border-radius: var(--border-radius, 12px);
    box-shadow: var(--shadow-medium, 0 8px 30px rgba(139, 69, 19, 0.15));
    border: 1px solid var(--border-light, #E8DDD4);
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color, #8B4513), var(--secondary-color, #D2691E));
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary, #2C1810);
    font-weight: 700;
    font-size: 1.75rem;
    font-family: 'Playfair Display', serif;
}

.form-section {
    margin-bottom: 1.5rem;
}

.form-section label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary, #6B4E37);
    font-weight: 500;
    font-size: 0.95rem;
}

.boho-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-light, #E8DDD4);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--bg-white, #FFFFFF);
    color: var(--text-primary, #2C1810);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.boho-input:focus {
    outline: none;
    border-color: var(--primary-color, #8B4513);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.boho-input::placeholder {
    color: var(--text-light, #8B7355);
}

.btn-primary-boho {
    background: linear-gradient(135deg, var(--primary-color, #8B4513) 0%, var(--primary-dark, #654321) 100%);
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: var(--border-radius, 12px);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft, 0 4px 20px rgba(139, 69, 19, 0.1));
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary-boho:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium, 0 8px 30px rgba(139, 69, 19, 0.15));
}

.btn-primary-boho:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

.auth-link {
    text-align: center;
    margin: 0.75rem 0;
    color: var(--text-secondary, #6B4E37);
    font-size: 0.95rem;
}

.auth-link a {
    color: var(--primary-color, #8B4513);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link a:hover {
    color: var(--primary-dark, #654321);
    text-decoration: underline;
}

.auth-options {
    border-top: 1px solid var(--border-light, #E8DDD4);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.alert {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.alert-danger {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
    border-style: solid;
    border-color: currentColor transparent currentColor transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
    width: 0.875rem;
    height: 0.875rem;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* CSS Variables for consistent theming */
:root {
    --primary-color: #8B4513;
    --primary-dark: #654321;
    --secondary-color: #D2691E;
    --text-primary: #2C1810;
    --text-secondary: #6B4E37;
    --text-light: #8B7355;
    --bg-light: #FDF8F3;
    --bg-white: #FFFFFF;
    --border-light: #E8DDD4;
    --shadow-soft: 0 4px 20px rgba(139, 69, 19, 0.1);
    --shadow-medium: 0 8px 30px rgba(139, 69, 19, 0.15);
    --border-radius: 12px;
    --header-height: 80px;
    --mobile-header-height: 70px;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --header-height: var(--mobile-header-height);
    }

    .auth-container {
        min-height: calc(100vh - var(--mobile-header-height));
        margin-top: var(--mobile-header-height);
        padding: 1.5rem 1rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 0;
    }
    
    .auth-card h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .form-section {
        margin-bottom: 1.25rem;
    }

    .boho-input {
        padding: 0.75rem;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .btn-primary-boho {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 1rem 0.75rem;
    }
    
    .auth-card {
        padding: 1.5rem 1rem;
        max-width: 100%;
    }
    
    .auth-card h2 {
        font-size: 1.375rem;
    }

    .form-section label {
        font-size: 0.9rem;
    }

    .auth-link {
        font-size: 0.875rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn-primary-boho {
        min-height: 48px;
        touch-action: manipulation;
    }
    
    .boho-input {
        min-height: 44px;
        touch-action: manipulation;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .auth-card {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .btn-primary-boho,
    .boho-input,
    .auth-link a {
        transition: none;
    }
    
    .spinner-border {
        animation: none;
    }
}