/** Override FirebaseUI styles. */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  90% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.firebaseui-id-page-spinner {
  animation: 3s fadeIn;
}
/** End of overrides. */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

:root {
    --page-gutter: 12em;
    --topbar-height-desktop: 96px;
    --topbar-height-mobile: 72px;
}

@media (max-width: 1024px) {
    :root { --page-gutter: 40px; }
}

@media (max-width: 768px) {
    :root { --page-gutter: 24px; }
    .site-header { min-height: var(--topbar-height-mobile); }
    .site-header__inner { min-height: var(--topbar-height-mobile); }
}

@media (max-width: 480px) {
    :root { --page-gutter: 16px; }
}

body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    min-height: 100vh;
    margin: 0;
    background-color: #ffffff;
    padding: 0;
}

/* Ensure form controls inherit the global font */
button, input, select, textarea { font-family: inherit !important; }

/* Ensure FirebaseUI elements use the global font */
.firebaseui-container,
.firebaseui-title,
.firebaseui-button,
.firebaseui-idp-button,
.firebaseui-idp-text,
.firebaseui-textfield,
.firebaseui-input,
.mdl-textfield__input { font-family: inherit !important; }

/* Hero section holds the background image so footer comes after it */
.hero {
    background-image: linear-gradient(#001c39b3,#010d1980), url('background.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero .page-wrapper {
    padding: 24px var(--page-gutter) 40px;
}

/* Global site header */
.site-header {
    width: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--topbar-height-desktop);
}

.site-header__inner {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 16px var(--page-gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--topbar-height-desktop);
}

.site-header__logo img {
    height: clamp(28px, 5vw, 44px);
    width: auto;
    max-width: 60vw;
    display: block;
}

.site-header__actions { height: 44px; display: flex; align-items: center; }

.page-wrapper {
    width: 100%;
    max-width: 100%;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.external-logo-container .company-logo {
    margin: 0;
}

.external-logo-container .company-logo img {
    width: 280px;
    height: auto;
    max-width: 36vw;
    max-height: 80px;
    object-fit: contain;
}

.external-logo-container .company-logo.placeholder {
    font-size: 64px;
    color: #009EDB;
}

.login-container {
    position: relative;
    width: min(520px, 92vw);
    max-width: 520px;
    margin: 0 auto;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(194,194,194,.1);
    box-shadow: 0 4px 16px #00000026;
    overflow: hidden;
    animation: slideUp 0.5s ease-out 0.2s both;
}

/* Glass layers to mimic latest opportunities card */
.login-container::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 36px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.08) 100%);
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    z-index: -1;
}

.login-container::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 44px;
    background: rgba(255, 255, 255, 0.1);
    filter: blur(10px);
    z-index: -2;
}

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

.header {
    background: transparent;
    padding: 24px 30px 8px;
    text-align: left;
    color: #001e3c;
    border-bottom: none;
}

/* Create Account Page Styles */
.firebaseui-card-content {
    padding: 24px !important;
}

.firebaseui-title {
    font-size: 24px;
    font-weight: 600;
    color: #202124;
    margin: 0 0 24px 0;
    padding: 0;
    text-align: left;
}

/* Input Fields Container */
.firebaseui-textfield {
    width: 100% !important;
    margin-bottom: 24px !important;
    position: relative !important;
}

/* Input Fields */
.firebaseui-input,
.firebaseui-input-field {
    width: 100% !important;
    height: 44px !important;
    padding: 12px 16px !important;
    border: 1px solid #dadce0 !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    color: #202124 !important;
    background: #fff !important;
    transition: border-color 0.2s ease !important;
}

/* Password inputs - standard styling */

.firebaseui-input:focus,
.firebaseui-input-field:focus {
    border-color: #1a73e8 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2) !important;
}

/* Password Fields */
.mdl-textfield {
    width: 100% !important;
    margin-bottom: 16px !important;
    position: relative !important;
}

.mdl-textfield__input {
    width: 100% !important;
    height: 36px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    border: 1px solid #dadce0 !important;
    border-radius: 4px !important;
    background: white !important;
    color: #202124 !important;
}

/* Password wrapper styling removed - using FirebaseUI defaults */

/* Standard input field containers */
.firebaseui-textfield,
.mdl-textfield {
    position: relative !important;
}

/* Hide any password toggle elements that might appear */
.firebaseui-input-toggle-on,
.firebaseui-input-toggle-off,
.firebaseui-input-toggle {
    display: none !important;
}

/* Hide password toggle buttons */
button[data-toggle],
.password-toggle,
.toggle-password {
    display: none !important;
}

.platform-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0;
    color: #001e3c;
}

.subtitle {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 400;
}

.auth-section {
    padding: 32px 30px 24px;
}

/* Slight inner veil to increase perceived whiteness, similar to landing glass */
.login-container .auth-section {
    background: rgba(255, 255, 255, 0.03);
}

#firebaseui-container {
    margin-bottom: 20px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.firebaseui-page-provider-sign-in .firebaseui-list-item {
    margin-bottom: 16px;
}

.firebaseui-list-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.firebaseui-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Center the provider/tenant buttons */
#firebaseui-container .firebaseui-tenant-list,
#firebaseui-container .firebaseui-idp-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
}

#firebaseui-container .firebaseui-list-item {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

/* OR separator between provider buttons */
.provider-separator {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    color: #001e3c;
    padding: 4px 0 12px;
}

.provider-separator::before,
.provider-separator::after {
    content: '';
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0,30,60,0.4), transparent);
}

.provider-separator span {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #001e3c;
    font-weight: 500;
    opacity: 1;
}

.firebaseui-tenant-button,
.firebaseui-idp-button {
    width: fit-content !important;
    max-width: none !important;
}

/* CTA-style provider/tenant buttons (match seeAllCurrent link) */
/* CTA pill style like title.hero.currentOpportunities */
.firebaseui-tenant-button,
.firebaseui-idp-button,
.firebaseui-idp-password,
.firebaseui-idp-google {
    background: #005f88 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 12px 20px !important;
    height: auto !important;
    min-height: 0 !important;
    box-shadow: 0px 1px 4px 0px rgba(25, 33, 61, 0.08) !important;
    transition: all 0.2s ease !important;
    background-image: none !important;
    min-width: 320px !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: 'Noto Sans', sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}

.firebaseui-tenant-button:hover,
.firebaseui-idp-button:hover,
.firebaseui-idp-password:hover,
.firebaseui-idp-google:hover {
    background: #02496e !important;
    transform: translateY(-1px);
    box-shadow: 0px 2px 8px 0px rgba(25, 33, 61, 0.15) !important;
}

/* Ensure button text is white inside the pill buttons */
.firebaseui-tenant-button .firebaseui-idp-text,
.firebaseui-tenant-button .firebaseui-idp-text-long,
.firebaseui-tenant-button .firebaseui-idp-text-short,
.firebaseui-idp-button .firebaseui-idp-text,
.firebaseui-idp-button .firebaseui-idp-text-long,
.firebaseui-idp-button .firebaseui-idp-text-short {
    color: #ffffff !important;
    font-family: 'Noto Sans', sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

/* Responsive width on small screens */
@media (max-width: 480px) {
  .firebaseui-tenant-button,
  .firebaseui-idp-button,
  .firebaseui-idp-password,
  .firebaseui-idp-google {
      width: 90vw !important;
      max-width: 320px !important;
  }
}

.firebaseui-container {
    background-color: transparent;
    box-shadow: none;
    max-width: none;
    width: 100%;
}

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

.firebaseui-button {
    border-radius: 8px;
    height: 56px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s ease;
    border: 1px solid #dadce0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    color: #3c4043;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 16px;
}

.firebaseui-button:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-color: #dadce0;
}

.firebaseui-idp-password {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.firebaseui-idp-password:hover { background: none !important; }

.firebaseui-idp-text {
    color: #3c4043;
    font-weight: 500;
    margin-left: 0;
}

.firebaseui-idp-button {
    margin-bottom: 16px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}

/* Hide provider icons - cleaner look like demo app */
.firebaseui-idp-icon-wrapper {
  display: none !important;
}
/* Ensure no Google/provider icon reserves space on subsequent screens */
.firebaseui-idp-button .firebaseui-idp-icon-wrapper,
.firebaseui-idp-button .firebaseui-idp-icon,
.firebaseui-idp-button .firebaseui-idp-icon > img {
    display: none !important;
}

/* Adjust button text positioning without icons */
.firebaseui-idp-button .firebaseui-idp-text {
    margin-left: 0 !important;
    text-align: center !important;
    width: auto !important;
}

/* Inline Google icon inserted via JS */
.custom-google-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.custom-google-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* Align icon and text for Google button only */
.firebaseui-idp-google {
    gap: 8px;
}

.firebaseui-idp-google .firebaseui-idp-text {
    width: auto !important;
}

/* Tenant selection buttons: align custom Google icon with text */
.firebaseui-tenant-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.firebaseui-tenant-button .firebaseui-idp-text,
.firebaseui-tenant-button .firebaseui-idp-text-long,
.firebaseui-tenant-button .firebaseui-idp-text-short {
    display: inline-block !important;
    width: auto !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: center !important;
}

/* Show only long label; hide short variant to prevent duplication */
.firebaseui-tenant-button .firebaseui-idp-text-short,
.firebaseui-idp-button .firebaseui-idp-text-short {
    display: none !important;
}

/* Keep long label visible */
.firebaseui-tenant-button .firebaseui-idp-text-long,
.firebaseui-idp-button .firebaseui-idp-text-long {
    display: inline-block !important;
}

.firebaseui-textfield {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 16px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.firebaseui-textfield:focus {
    border-color: #009EDB;
    outline: none;
    box-shadow: 0 0 0 3px #009EDB;
}

.firebaseui-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.firebaseui-form-actions {
    margin-top: 24px;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #009EDB;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

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

.loader p {
    color: #666;
    font-size: 14px;
}

/* Card inline links styled like CTA link */
.card-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    padding: 12px 0 20px;
}

.cta-link {
    font-size: 14px;
    font-weight: 600;
    color: #0e569e;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background:
      linear-gradient(to right, rgba(100, 200, 200, 0), rgba(100, 200, 200, 0)),
      linear-gradient(to right, rgba(14, 86, 158, 1), rgba(38, 154, 196, 1), rgba(93, 239, 252, 1), rgba(255, 255, 255, 0));
    background-size: 100% 2px, 0 2px;
    background-position: 100% 100%, 2% 100%;
    background-repeat: no-repeat;
    transition: background-size 400ms;
}

.cta-link:hover {
    background-size: 0 2px, 100% 2px;
}

/* Arrow icon at the end of CTA links */
.cta-link::after {
    content: '\2197'; /* ↗ */
    font-size: 14px;
    line-height: 1;
    color: currentColor;
    transition: transform 200ms ease;
}

.cta-link:hover::after {
    transform: translate(1px, -1px);
}

.separator {
    color: #6c757d;
    margin: 0 8px;
}

/* Page footer like landing */
.footer {
    width: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #c9c9c9;
}

.footer__container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    max-width: 1920px;
    padding: 56px var(--page-gutter);
    margin: 0 auto;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer__logo-svg {
    height: auto;
    width: 280px;
    min-width: 280px;
    max-width: 360px;
}

.footer__copyright {
    font-size: 16px;
    font-weight: 400;
    color: #6d758f;
}

/* Old consent styling removed - replaced with FirebaseUI MDL patterns */

@media (max-width: 480px) {
    body {
        padding: 0;
    }
    
    .external-logo-container {
        margin-bottom: 20px;
    }
    
    .external-logo-container .company-logo img {
        width: 200px;
        max-width: 60vw;
        max-height: 60px;
    }
    
    .external-logo-container .company-logo.placeholder {
        font-size: 48px;
    }
    
    .login-container {
        margin: 0;
        border-radius: 12px;
    }
    
    .header {
        padding: 25px 20px 25px;
    }
    
    .auth-section {
        padding: 30px 20px;
    }
    
    .platform-title {
        font-size: 20px;
    }
    
    .subtitle {
        font-size: 14px;
    }
}

/* Footer responsiveness */
@media (max-width: 1024px) {
    .footer__container {
        padding: 40px var(--page-gutter);
    }
}

@media (max-width: 768px) {
    .footer__container {
        padding: 32px var(--page-gutter);
    }
    .footer__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .footer__logo-svg {
        width: clamp(180px, 42vw, 240px);
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .footer__container {
        padding: 24px var(--page-gutter);
    }
    .footer__logo-svg {
        width: clamp(160px, 50vw, 220px);
    }
}

/* FirebaseUI Input Field Overrides */
.mdl-textfield {
    all: unset !important;
    display: block !important;
    width: 100% !important;
    margin-bottom: 20px !important;
  }
  
  .mdl-textfield__input {
    all: unset !important;
    width: 100% !important;
    padding: 10px 14px !important;
    font-size: 16px !important;
    border: 1px solid #ccc !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    background-color: #fff !important;
  }
  
  .mdl-textfield__label {
    display: none !important;
  }
  
  /* Autofill icons (Chrome, Edge, etc.) */
  input::-ms-reveal,
  input::-ms-clear,
  input[type="email"]::-webkit-contacts-auto-fill-button,
  input[type="email"]::-webkit-credentials-auto-fill-button {
    display: none !important;
  }
  
  /* Optional input focus effect */
  .mdl-textfield__input:focus {
    border-color: #009EDB !important;
    box-shadow: 0 0 0 3px rgba(0, 158, 219, 0.2) !important;
  }
  
  /* Optional: consistent password input styling */
  input[type="password"] {
    border: 1px solid #ccc !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 16px !important;
    background-color: #fff !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Center button text when icons are hidden */
  .firebaseui-idp-button .firebaseui-idp-text {
    margin-left: 0 !important;
    text-align: center !important;
    width: auto !important;
  }

/* Form Actions - Side by Side Buttons */
.firebaseui-form-actions {
    display: flex !important;
    gap: 12px !important;
    justify-content: flex-end !important;
    align-items: center !important;
    margin-top: 24px !important;
}

/* Ensure buttons have consistent sizing - cover ALL button classes */
.firebaseui-form-actions .firebaseui-id-submit,
.firebaseui-form-actions .firebaseui-secondary-link,
.firebaseui-form-actions .firebaseui-id-secondary-link,
.firebaseui-form-actions .firebaseui-button,
.firebaseui-form-actions .mdl-button {
    flex: 0 0 auto !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    letter-spacing: 0.25px !important;
    line-height: 1 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    width: auto !important;
    min-width: 80px !important;
}

/* Specific styling for secondary/cancel buttons */
.firebaseui-id-secondary-link,
.firebaseui-secondary-link {
    background-color: transparent !important;
    color: #1a73e8 !important;
    border: none !important;
    text-decoration: none !important;
}

.firebaseui-id-secondary-link:hover,
.firebaseui-secondary-link:hover {
    background-color: rgba(26, 115, 232, 0.04) !important;
    text-decoration: none !important;
}


/* FirebaseUI Terms of Service (Consent) Styling */
.firebaseui-tos.firebaseui-textfield {
    margin: 32px 0 24px 0; 
    border: none;
    background: none;
}

.firebaseui-tos-list.mdl-checkbox {
    display: flex;
    align-items: flex-start;
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: auto;
}

.firebaseui-tos-checkbox.mdl-checkbox__input {
    position: relative;
    left: 0;
    margin: 2px 12px 0 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 1;
}

.firebaseui-tos-text.mdl-checkbox__label {
    font-size: 14px;
    line-height: 20px;
    color: rgba(0, 0, 0, 0.54);
    margin: 0;
    padding: 0;
    cursor: pointer;
    text-align: left;
    width: auto;
    font-weight: normal;
}

.firebaseui-tos-text a {
    color: #4285f4;
    text-decoration: none;
}

.firebaseui-tos-text a:hover {
    text-decoration: underline;
}

/* Input Field Styling */
.firebaseui-input,
.firebaseui-input-field,
.mdl-textfield__input {
    width: 100%;
    height: 44px;
    padding: 12px 16px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 16px;
    color: #202124;
    background: #fff;
    transition: border-color 0.2s ease;
    margin-bottom: 0;
    box-sizing: border-box;
}

.firebaseui-input:focus,
.firebaseui-input-field:focus,
.mdl-textfield__input:focus {
    border-color: #4285f4;
    outline: none;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.firebaseui-input::placeholder,
.mdl-textfield__input::placeholder {
    color: #80868b;
    opacity: 1;
}

/* Field Containers */
.firebaseui-textfield,
.firebaseui-password-wrapper {
    width: 100%;
    margin-bottom: 16px;
    position: relative;
}

/* Let FirebaseUI handle button visibility naturally, just ensure basic styling */
.firebaseui-form-actions {
    display: flex !important;
    gap: 12px !important;
    justify-content: flex-end !important;
    align-items: center !important;
    margin-top: 24px !important;
}

/* Submit button - disabled state (grey) */
.firebaseui-id-submit.mdl-button--raised:disabled,
.firebaseui-id-submit.mdl-button--raised[disabled] {
    background-color: #f1f3f4 !important;
    color: #5f6368 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

.firebaseui-id-submit.mdl-button--raised:disabled:hover,
.firebaseui-id-submit.mdl-button--raised[disabled]:hover {
    background-color: #f1f3f4 !important;
    box-shadow: none !important;
}

/* Submit button - enabled state (blue) */
.firebaseui-id-submit.mdl-button--raised:not(:disabled) {
    background: #005f88 !important;
    color: #ffffff !important;
    box-shadow: 0px 1px 4px 0px rgba(25, 33, 61, 0.08) !important;
    cursor: pointer !important;
}

.firebaseui-id-submit.mdl-button--raised:not(:disabled):hover {
    background: #02496e !important;
    transform: translateY(-1px);
    box-shadow: 0px 2px 8px 0px rgba(25, 33, 61, 0.15) !important;
}

/* First Name and Last Name Fields */
#first-name-field,
#last-name-field {
    width: 100%;
    height: 44px;
    padding: 12px 16px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 16px;
    color: #202124;
    background: #fff;
    transition: border-color 0.2s ease;
    margin-bottom: 0;
    box-sizing: border-box;
}

#first-name-field:focus,
#last-name-field:focus {
    border-color: #4285f4;
    outline: none;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

#first-name-field::placeholder,
#last-name-field::placeholder {
    color: #80868b;
    opacity: 1;
}

/* Hide the original display name field when replaced */
.firebaseui-textfield:has(.firebaseui-id-name) {
    display: none !important;
}

/* Alternative approach for browsers that don't support :has() */
.firebaseui-id-name {
    opacity: 0;
    position: absolute;
    left: -9999px;
    pointer-events: none;
}

/* Error Messages */
.firebaseui-error {
    color: #d93025;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* Clean up - removed custom button implementations that conflicted with FirebaseUI */

/* Removed overriding Google button reset to preserve unified pill styling */

.verify-email {
    margin: 0;
    padding: 24px 30px 28px;
    background: transparent;
    border: none;
    border-radius: 0;
    text-align: center;
}

.verify-email h2 {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 600;
    color: #202124;
}

.verify-email button {
    margin: 12px 8px 0 8px;
    padding: 10px 16px;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background-color: #005f88;
    color: #ffffff;
    box-shadow: 0px 1px 4px 0px rgba(25, 33, 61, 0.08);
}

.verify-email button:hover {
    background-color: #02496e;
}

.verify-email p {
    margin: 10px 0;
    color: #3c4043;
}

/* Password Requirements Styling */
.password-requirements {
    margin-top: 8px;
    padding: 12px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.4;
}

.password-requirements div {
    margin: 2px 0;
    display: flex;
    align-items: center;
}

.password-requirements div:before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

.password-requirements div[style*="color: green"]:before {
    background-color: #34a853;
}

.password-requirements div[style*="color: #d32f2f"]:before,
.password-requirements div[style*="color: red"]:before {
    background-color: #ea4335;
}

.password-requirements div[style*="color: #666"]:before,
.password-requirements div[style*="color: #1976d2"]:before {
    background-color: #9aa0a6;
}

