/**
 * Customer Registration Page Styles
 * 
 * These styles can be customized to match your theme design
 */

.firebase-customer-registration-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.firebase-customer-registration-content h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 2em;
    font-weight: 600;
}

.firebase-registration-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.firebase-registration-submit {
    width: 100%;
    padding: 14px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
}

.firebase-registration-submit:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.firebase-registration-submit:active {
    transform: translateY(0);
}

.firebase-registration-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.firebase-registration-message {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

.firebase-registration-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.firebase-registration-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.firebase-registration-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.firebase-registration-links a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.firebase-registration-links a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Google Login Button Styles */
.firebase-auth-separator {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.firebase-auth-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.firebase-auth-separator span {
    background: #fff;
    padding: 0 20px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.firebase-auth-providers {
    margin-bottom: 20px;
}

.firebase-auth-button {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    text-decoration: none;
}

.firebase-auth-button:hover {
    background: #f8f9fa;
    border-color: #0073aa;
    transform: translateY(-1px);
}

.firebase-auth-button:active {
    transform: translateY(0);
}

.firebase-auth-button.firebase-auth-google {
    border-color: #4285f4;
    color: #4285f4;
}

.firebase-auth-button.firebase-auth-google:hover {
    background: #4285f4;
    color: #fff;
    border-color: #4285f4;
}

.firebase-auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.firebase-auth-icon {
    font-weight: bold;
    font-size: 18px;
}

.firebase-auth-text {
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .firebase-customer-registration-container {
        margin: 20px;
        padding: 20px;
    }
    
    .firebase-customer-registration-content h1 {
        font-size: 1.5em;
    }
    
    .form-group input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .firebase-customer-registration-container {
        margin: 10px;
        padding: 15px;
    }
    
    .firebase-registration-submit,
    .firebase-auth-button {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Theme Integration - These can be overridden by your theme */
.firebase-customer-registration-container {
    /* Inherit theme colors */
    background: var(--wp--preset--color--background, #fff);
    color: var(--wp--preset--color--foreground, #333);
}

.firebase-registration-submit {
    /* Use theme primary color if available */
    background: var(--wp--preset--color--primary, #0073aa);
}

.firebase-registration-submit:hover {
    background: var(--wp--preset--color--primary-darker, #005a87);
}

.firebase-registration-links a {
    color: var(--wp--preset--color--primary, #0073aa);
}

.firebase-registration-links a:hover {
    color: var(--wp--preset--color--primary-darker, #005a87);
} 