/* Auth shared styles — InfoPlay */

.auth-glow-text {
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.35);
}

.auth-hero-gradient {
    background: linear-gradient(
        160deg,
        rgba(15, 23, 42, 0.35) 0%,
        rgba(30, 58, 138, 0.72) 55%,
        rgba(15, 23, 42, 0.8) 100%
    );
}

/* Jugador centrado bajo el wordmark */
.auth-hero-image {
    object-position: 62% 68%;
}

/* Panel: scroll interno sin recortar el logo (margin auto, no justify-center) */
.auth-panel {
    display: flex;
    flex-direction: column;
}

.auth-panel-inner {
    width: 100%;
    max-width: 26rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
    padding: 2.5rem 1.5rem 2rem;
    box-sizing: border-box;
}

.auth-panel-inner--wide {
    max-width: 36rem;
}

@media (min-width: 640px) {
    .auth-panel-inner {
        padding: 2.75rem 2rem 2.25rem;
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    padding: 0.85rem 1.5rem;
    max-width: 220px;
    width: auto;
    background: linear-gradient(145deg, #0b1220 0%, #152238 100%);
    border-radius: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 24px rgba(15, 23, 42, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-logo-frame img {
    height: 2.5rem;
    width: auto;
    object-fit: contain;
    display: block;
}

.auth-logo-frame--compact {
    padding: 0.55rem 1.1rem;
    max-width: 170px;
    margin-bottom: 0.85rem;
    border-radius: 0.75rem;
}

.auth-logo-frame--compact img {
    height: 1.85rem;
}

@media (min-width: 640px) {
    .auth-logo-frame img {
        height: 2.85rem;
    }

    .auth-logo-frame--compact img {
        height: 2.1rem;
    }
}

.auth-heading {
    margin: 0 0 0.35rem;
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1.2;
}

.auth-subheading {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
}

.auth-compact .auth-header {
    margin-bottom: 1rem;
}

.auth-compact .auth-heading {
    font-size: 1.35rem;
}

.auth-compact .auth-subheading {
    font-size: 0.8125rem;
}

.auth-mobile-footer {
    margin-top: 2rem;
    text-align: center;
}

.auth-mobile-footer p {
    margin: 0;
    font-size: 0.7rem;
    color: #94a3b8;
}

/* Form controls */
.auth-input {
    display: block;
    width: 100%;
    padding: 0.7rem 0.95rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.9375rem;
    outline: none;
    transition: box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.auth-input::placeholder {
    color: #94a3b8;
}

.auth-input:hover {
    border-color: #cbd5e1;
}

.auth-input:focus {
    border-color: #1e3a8a;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}

.auth-input.auth-input--icon {
    padding-left: 2.65rem;
}

.auth-input.auth-input--icon-right {
    padding-right: 2.85rem;
}

.auth-input.input-error {
    border-color: #dc2626 !important;
    background: #fef2f2 !important;
}

.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #0f172a;
    box-shadow: 0 0 0 1000px #f8fafc inset;
    transition: background-color 9999s ease-in-out 0s;
}

.auth-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}

.auth-field {
    margin-bottom: 0.9rem;
}

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

.auth-btn-primary {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 0.625rem;
    background: #1e3a8a;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(30, 58, 138, 0.28);
    transition: background 0.15s ease, transform 0.1s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.auth-btn-primary:hover {
    background: #1e40af;
    box-shadow: 0 10px 22px rgba(30, 58, 138, 0.35);
}

.auth-btn-primary:active {
    transform: scale(0.985);
}

.auth-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-btn-secondary {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.7rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    background: transparent;
    color: #334155;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.auth-btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.auth-link {
    color: #1e3a8a;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-link:hover {
    color: #1e40af;
}

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

.auth-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid #e2e8f0;
}

.auth-divider span {
    position: relative;
    display: inline-block;
    padding: 0 0.75rem;
    background: #ffffff;
    color: #94a3b8;
    font-size: 0.8125rem;
}

.auth-required {
    color: #dc2626;
}

.auth-error-text {
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.auth-alert {
    margin-bottom: 1rem;
    border-radius: 0.625rem;
    padding: 0.7rem 0.9rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
}

.auth-alert--error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.auth-alert--success {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.auth-alert--warn {
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.auth-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 0.65rem;
}

@media (max-width: 480px) {
    .auth-row-2 {
        grid-template-columns: 1fr;
    }
}

.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 50;
    backdrop-filter: blur(2px);
}

.auth-modal-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.auth-modal-card p {
    margin: 0 0 1.125rem;
    text-align: center;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: #1f2937;
}

.auth-modal-actions {
    display: flex;
    gap: 0.625rem;
}

.auth-modal-actions .auth-btn-primary,
.auth-modal-actions .auth-btn-ghost {
    flex: 1;
    text-transform: none;
    letter-spacing: normal;
}

.auth-btn-ghost {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 0.625rem;
    background: #e8eefc;
    color: #1e3a8a;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
}

.auth-btn-ghost:hover {
    background: #d7e3ff;
}

/* Compact register density */
.auth-compact .auth-field {
    margin-bottom: 0.55rem;
}

.auth-compact .auth-label {
    font-size: 0.72rem;
    margin-bottom: 0.22rem;
}

.auth-compact .auth-input {
    padding: 0.48rem 0.7rem;
    font-size: 0.8125rem;
    border-radius: 0.5rem;
}

.auth-compact .auth-btn-primary {
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    margin-top: 0.15rem;
}

.auth-compact .auth-error-text {
    font-size: 0.7rem;
}

.auth-compact .auth-alert {
    margin-bottom: 0.65rem;
    padding: 0.5rem 0.7rem;
    font-size: 0.75rem;
}

.auth-compact .auth-row-2 {
    gap: 0 0.5rem;
}

.auth-compact .auth-panel-inner,
.auth-compact.auth-panel-inner {
    padding-top: 1.75rem;
    padding-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .auth-compact .auth-row-2 {
        grid-template-columns: 1fr 1fr;
    }
}
