/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Main container - split layout */
.firebase-login-container {
    display: flex;
    min-height: 100vh;
}

/* Left side - branding */
.login-branding {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    color: white;
    position: relative;
}

.login-branding::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.branding-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 16px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: #667eea;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.site-name {
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.site-tagline {
    font-size: 18px;
    opacity: 0.9;
    font-weight: 300;
    max-width: 400px;
}

/* Right side - login form */
.login-form-side {
    flex: 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
}

.login-content {
    width: 100%;
    max-width: 400px;
}

.login-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    text-align: center;
}

.login-subtitle {
    color: #666;
    margin-bottom: 40px;
    text-align: center;
    font-size: 16px;
}

/* Firebase UI container */
#firebaseui-auth-container {
    width: 100%;
}

/* FirebaseUI customizations */
.firebaseui-container {
    background: transparent;
    box-shadow: none;
    max-width: none;
}

.firebaseui-card-content {
    padding: 0;
    background: transparent;
}

.firebaseui-idp-list {
    margin: 0;
    padding: 0;
}

.firebaseui-list-item {
    margin-bottom: 0;
}

.firebaseui-list-item::marker {
    content: none;
}

.firebaseui-idp-button {
    width: 100%;
    height: 56px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.firebaseui-idp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.firebaseui-idp-text {
    color: #374151 !important;
    font-weight: 500;
}

.firebaseui-idp-icon-wrapper {
    margin-right: 12px;
}

.firebaseui-idp-icon {
    width: 20px;
    height: 20px;
}

/* Loader styling */
#loader {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 16px;
}

/* Responsive design */
@media (max-width: 768px) {
    .firebase-login-container {
        flex-direction: column;
    }

    .login-branding {
        min-height: 40vh;
        padding: 40px 20px;
    }

    .login-form-side {
        padding: 40px 20px;
    }

    .site-name {
        font-size: 32px;
    }

    .login-title {
        font-size: 24px;
    }
}

.firebaseui-idp-text-short {
    display: none;
}

.firebaseui-info-bar {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin: 16px 0 !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1) !important;
}

.firebaseui-info-bar-message {
    color: #dc2626 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.firebaseui-link.firebaseui-id-dismiss-info-bar {
    color: #dc2626 !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: color 0.2s ease !important;
}

.firebaseui-link.firebaseui-id-dismiss-info-bar:hover {
    color: #b91c1c !important;
}

/* Alternative success styling if needed */
.firebaseui-info-bar.firebaseui-id-page-callback-success {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
}

.firebaseui-info-bar.firebaseui-id-page-callback-success .firebaseui-info-bar-message {
    color: #16a34a !important;
}
