/* Fonts & base */
:root{
  --card-bg: rgba(255,255,255,0.06);
  --accent: #1F8CC5;
  --glass: rgba(255,255,255,0.06);
}

* { box-sizing: border-box; }
html,body { height: 100%; margin: 0; font-family: 'Montserrat', sans-serif; -webkit-font-smoothing:antialiased; }

body {
  background: #0c0c0c;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 24px;
}

/* Center wrapper */
.center-wrap {
  width: 100%;
  max-width: 980px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 80vh;
}

/* Card */
.auth-card {
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  padding: 28px;
  color: #fff;
  backdrop-filter: blur(6px);
}

/* Header inside card */
.auth-header {
  text-align: center;
  margin-bottom: 60px;
}
.auth-header .imgAuth{ width:84px; height:84px; margin: 0 auto 8px; display:block; }
.auth-header h1{ margin: 4px 0 6px; font-size: 20px; font-weight:700; letter-spacing:0.2px; }
.auth-header .subtitle { margin:auto; font-size: 15px; color: rgba(255,255,255,0.85); max-width: 70% }

/* firebaseui container spacing */
.firebaseui-container {
    margin-top: 12px;
    border-radius: 20px;
}

/* Make firebaseui buttons rounded & full width */
#firebaseui-auth-container .firebaseui-idp-button,
#firebaseui-auth-container .firebaseui-idp-text,
#firebaseui-auth-container .firebaseui-idp-button .firebaseui-idp-text {
  border-radius: 12px !important;
  font-size: 14px !important;
  max-width: 245px;
}

/* store badges */
.block-store-links {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 15px;
}
.store-links {
    display:flex;
    justify-content:center;
    gap:16px;
}
.logo-store {
    width: 80px;
    vertical-align: middle;
}

.auth-footer {
    text-align: center;
    margin-top: 60px;
    font-size: 12px;
    color: rgba(255,255,255,0.75);
}

@media (max-width:480px) {
  .auth-card { padding:20px; border-radius:12px; }
  .auth-header h1 { font-size:18px; }
}

#firebaseui-auth-container {
  margin: 0 auto;
  max-width: 100%;
  width: 100%;
  background: transparent; /* que tome el fondo de tu card */
  padding: 0;
}

.spinner {
    display: block;
    width: 35px;
    height: 35px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6b7378;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
    margin: auto;
}

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

.mdl-button--raised.mdl-button--colored {
    background: #0c0c0c;
    border-radius: 10px;
}

.mdl-button--primary.mdl-button--primary {
    color: #0c0c0c;
    border-radius: 10px;
}

.firebaseui-subtitle {
    color: #fffffd;
}

.firebaseui-link {
    color: #fffffd;
}

.mdl-button--raised.mdl-button--colored:hover {
    background: #717171
}

.firebaseui-textfield.mdl-textfield .firebaseui-label::after {
    background-color: #0c0c0c
}

.mdl-progress.mdl-progress__indeterminate>.bar1 {
    background-color: #0c0c0c
}

.mdl-progress>.bufferbar {
    background-color: linear-gradient(90deg, hsla(0, 0%, 100%, .7), hsla(0, 0%, 100%, .7)), linear-gradient(90deg, #717171, #717171)
}

.mdl-progress:not(.mdl-progress--indeterminate):not(.mdl-progress--indeterminate)>.auxbar {
    background-color: linear-gradient(90deg,hsla(0,0%,100%,.7),hsla(0,0%,100%,.7)),linear-gradient(90deg,#0c0c0c,#0c0c0c)
}

.mdl-button--raised.mdl-button--colored:focus:not(:active) {
    background-color: #717171
}

.v2c-popup-app-error {
    position: absolute;
    background-color: white;
    padding: 20px 20px 20px 20px;
    border-radius: 10px;
    z-index: 100;
    text-align: center;
    margin: 0px 15px;
}

.v2c-popup-app-error-main {
    opacity: 0.2;
    pointer-events: none;
}

.v2c-button {
    color: #fff;
    border-radius: 12px;
    padding: 12px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.v2c-button-big {
    width: 80%;
}

.v2c-button-small {
    width: 20%;
}

.v2c-button-white {
    background-color: #fffffd;
    color: #000000
}

.v2c-button-black {
    background-color: #0c0c0c;
    border: white solid 1px;
    color: #fffffd
}

.v2c-button-stores {
    width: auto;
    background-color: #0c0c0c;
    border: #383838 solid 0.5px;
    color: #fffffd;
    padding: 12px 16px;
}

.v2c-dont-see {
    display: none;
}

.firebaseui-link {
    color: #000000 !important;
}

/* ---- Custom auth form (replaces FirebaseUI) ---- */

.auth-header {
    margin-bottom: 24px;
}

.v2c-auth-providers {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
}

.v2c-provider-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    text-align: left;
}

.v2c-provider-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.28);
}

.v2c-provider-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.v2c-provider-btn-apple {
    background: #1c1c1e;
    border-color: rgba(255,255,255,0.1);
}

.v2c-auth-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
    width: 100%;
}

.v2c-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.v2c-input:focus {
    border-color: rgba(255,255,255,0.45);
}

.v2c-input::placeholder {
    color: rgba(255,255,255,0.38);
}

.v2c-input-code {
    text-align: center;
    letter-spacing: 0.25em;
    font-size: 20px;
    font-weight: 600;
}

.v2c-btn-primary {
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    border: 1px solid #383838;
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.v2c-btn-primary:hover    { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.28); }
.v2c-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.v2c-back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.55);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    align-self: flex-start;
    margin-bottom: 2px;
}

.v2c-back-btn:hover { color: #fff; }

.v2c-mfa-hint {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    text-align: center;
    margin: 0 0 4px;
}

#info:not(:empty) {
    font-size: 13px;
    color: #ff6b6b;
    background: rgba(255,107,107,0.1);
    border: 1px solid rgba(255,107,107,0.25);
    border-radius: 8px;
    padding: 10px 14px;
    text-align: center;
    max-width: 300px;
    margin: 0 auto 8px;
}

#auth-loading-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12,12,12,0.75);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    pointer-events: all;
}

#info.success:not(:empty) {
    color: #4ade80;
    background: rgba(74,222,128,0.1);
    border-color: rgba(74,222,128,0.25);
}

.v2c-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 300px;
    margin: 8px auto 4px;
    color: rgba(255,255,255,0.35);
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
}

.v2c-divider::before,
.v2c-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.15);
}

.v2c-btn-secondary {
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.25);
    background: transparent;
    color: rgba(255,255,255,0.75);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.v2c-btn-secondary:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.4); color: #fff; }

.v2c-btn-link {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    width: 100%;
    padding: 4px 0;
    transition: color 0.2s;
}

.v2c-btn-link:hover { color: rgba(255,255,255,0.85); }
