/* Pixura Authentication Styles */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.login-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    margin-bottom: 2rem;
}

.login-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.login-header h1 {
    font-size: 2.5rem;
    margin: 0.5rem 0;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.login-header p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

.login-form {
    text-align: left;
}

.login-form .input-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.login-form input,
.login-form select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background: white;
}

.login-form input:focus,
.login-form select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

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

.login-error {
    color: #e74c3c;
    background: #fdf2f2;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: none;
}

.login-error:not(:empty) {
    display: block;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #999;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e1e5e9;
}

.login-divider span {
    padding: 0 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.g_id_signin {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Google Sign-In button styling */
#g_id_onload {
    display: none;
}

.login-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 0.9rem;
}

/* User Info in Header */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.user-role {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 0.5rem;
}

.usage-info {
    font-size: 0.7rem;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.logout-btn {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* Responsive Design */
@media screen and (max-width: 480px) {
    .login-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .login-header h1 {
        font-size: 2rem;
    }
    
    .user-info {
        position: relative;
        top: auto;
        right: auto;
        justify-content: center;
        margin-top: 1rem;
    }
    
    .user-role,
    .logout-btn {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

/* Security Notice */
.security-notice {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
}

.security-notice::before {
    content: "🔒 ";
    margin-right: 0.5rem;
}