/* Login page specific styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.login-card {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

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

.login-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #dc2626;
}

.login-header p {
    color: #666;
    font-size: 1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.google-btn:hover {
    border-color: #4285F4;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
}

.facebook-btn:hover {
    border-color: #1877F2;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.2);
}

.social-login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: #666;
    font-size: 0.9rem;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.email-form .form-group {
    margin-bottom: 0;
}

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

.email-form input {
    padding: 0.875rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.email-form input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.email-login-btn {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.email-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.email-login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.login-footer p {
    margin-bottom: 0.5rem;
    color: #666;
}

.login-footer a {
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* User Profile Styles */
.user-profile {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
}

.profile-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

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

.profile-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid #dc2626;
}

.profile-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #dc2626;
}

.profile-info p {
    color: #666;
    margin-bottom: 0;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-actions .btn-primary,
.profile-actions .btn-secondary {
    text-decoration: none;
    text-align: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.profile-actions .btn-primary {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

.profile-actions .btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #ddd;
}

.logout-btn {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #333;
    transform: translateY(-1px);
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #dc2626;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Auth messages */
.auth-message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    max-width: 400px;
    width: 90%;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.auth-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.auth-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.auth-message.info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.auth-message .message-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-message .message-content p {
    margin: 0;
    flex-grow: 1;
}

.auth-message .message-content button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem 0.5rem;
    margin-left: 1rem;
}

.auth-message .message-content button:hover {
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
}

/* Account type selection styles */
.account-type-section {
    margin-bottom: 2rem;
}

.account-type-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #333;
    text-align: center;
}

.account-type-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.account-type-option {
    cursor: pointer;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
    display: block;
}

.account-type-option:hover {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.account-type-option input[type="radio"] {
    display: none;
}

.account-type-option input[type="radio"]:checked + .option-content {
    color: #dc2626;
}

.account-type-option input[type="radio"]:checked + .option-content .option-icon {
    background-color: #dc2626;
    color: white;
}

.account-type-option:has(input[type="radio"]:checked) {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.option-icon {
    font-size: 1.5rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f3f4f6;
    transition: all 0.3s ease;
}

.option-details h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.option-details p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

/* Business fields */
.business-fields {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #f9fafb;
}

.business-fields h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
}

.business-fields .form-group {
    margin-bottom: 1rem;
}

.business-fields .form-group:last-child {
    margin-bottom: 0;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .login-card,
    .profile-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .login-header h2 {
        font-size: 1.75rem;
    }
    
    .social-login-btn {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    .auth-message {
        top: 70px;
        width: 95%;
    }

    .option-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .option-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }

    .business-fields {
        padding: 1rem;
    }
}