/* firebase-auth-style.css: Starter styles for Firebase Auth UI

.firebase-auth-container {
  max-width: 400px;
  margin: 0 auto;
  padding: 2em;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.firebase-auth-container h2 {
  margin-bottom: 1em;
  font-size: 1.5em;
  color: #333;
}

.firebase-auth-container input[type="text"],
.firebase-auth-container input[type="email"],
.firebase-auth-container input[type="password"] {
  width: 100%;
  padding: 0.75em;
  margin-bottom: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.firebase-auth-container button {
  width: 100%;
  padding: 0.75em;
  background: #4285f4;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
}

.firebase-auth-container button:hover {
  background: #357ae8;
}

.firebase-auth-error {
  color: #d93025;
  margin-bottom: 1em;
}
 */

 /*
 * Firebase Auth Form Styles
 * Add this to your Divi Custom CSS or Child Theme
 */

/* Main Wrapper */
.firebase-auth-wrapper {
    max-width: 450px; /* Set a max-width for the form */
    margin: 40px auto;  /* Center the form on the page */
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

/* Style all form containers inside the wrapper */
.firebase-auth-wrapper [id$="-container"] {
    width: 100%;
}

/* Form Headings */
.firebase-auth-wrapper h2 {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
}

/* Form Paragraphs (for spacing) */
.firebase-auth-wrapper form p {
    margin-bottom: 15px;
}

/* Form Labels */
.firebase-auth-wrapper label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
    font-size: 14px;
}

/* Form Inputs (Text, Email, Password, etc.) */
.firebase-auth-wrapper input[type="email"],
.firebase-auth-wrapper input[type="password"],
.firebase-auth-wrapper input[type="tel"],
.firebase-auth-wrapper input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; /* Important for 100% width */
    font-size: 16px;
}

.firebase-auth-wrapper input:focus {
    border-color: #0c71c3; /* Divi's default blue */
    outline: none;
    box-shadow: 0 0 5px rgba(12, 113, 195, 0.3);
}

/* Form Buttons */
.firebase-auth-wrapper button[type="submit"] {
    width: 100%;
    padding: 14px;
    background-color: #0c71c3; /* Divi's default blue */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.firebase-auth-wrapper button[type="submit"]:hover {
    background-color: #0a5a9e; /* A darker blue for hover */
}

/* reCAPTCHA Container */
.firebase-auth-wrapper #recaptcha-container {
    margin-bottom: 15px;
}

/* "Or login with..." Links */
.firebase-auth-wrapper .firebase-auth-links {
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
}
.firebase-auth-wrapper .firebase-auth-links a {
    color: #0c71c3;
    text-decoration: none;
}
.firebase-auth-wrapper .firebase-auth-links a:hover {
    text-decoration: underline;
}

/* Success & Error Messages */
.firebase-auth-wrapper .firebase-message {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 14px;
    display: none; /* Hide until populated by JS */
}

/* Show message if it has content */
.firebase-auth-wrapper .firebase-message:not(:empty) {
    display: block;
}

.firebase-auth-wrapper .firebase-message.error {
    background-color: #fbebee;
    border: 1px solid #e57373;
    color: #c62828;
}

.firebase-auth-wrapper .firebase-message.success {
    background-color: #e8f5e9;
    border: 1px solid #81c784;
    color: #2e7d32;
}

/* Other messages at the bottom */
#firebase-other-messages {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Google Login Button */
.firebase-auth-wrapper .google-login-btn {
    width: 100%;
    padding: 12px;
    background: #ffffff;
    color: #444;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    
    /* Flexbox to align image and text */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Space between logo and text */
}

.firebase-auth-wrapper .google-login-btn:hover {
    background: #f9f9f9;
    border-color: #aaa;
}

.firebase-auth-wrapper .google-login-btn img {
    width: 20px;
    height: 20px;
}


/* System Auth Verify Result */
.firebase-auth-wrapper .system-verify-result h3 {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.firebase-auth-wrapper .system-verify-result pre {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    overflow-x: auto; /* Allow horizontal scrolling if needed */
    font-size: 13px;
    line-height: 1.6;
    color: #222;
}

/* Make sure standalone error/success messages 
  (like the 'logged in' one) display correctly.
  We added 'style="display:block"' in the PHP,
  but this is a good CSS-only backup.
*/
.firebase-auth-wrapper > .firebase-message {
    display: block;
}