/* =============================================
   AUTH — css/auth.css
   Compartido entre register y owner_request
   Dark theme · Paleta violeta
============================================= */

/* ── Animaciones de entrada (CSS puro, sin JS) ── */
@keyframes auth-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.auth-hero__body {
    animation: auth-fade-up 0.6s ease both;
}

.auth-card {
    animation: auth-fade-up 0.6s 0.1s ease both;
}

.auth-alert {
    animation: auth-fade-up 0.4s ease both;
}

/* ── Layout base: dos columnas ── */
.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    background: var(--bg-deep, #06091a);
}

@media (max-width: 991px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   HERO — columna izquierda
============================================= */

.auth-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4rem 3rem;
    background:
        radial-gradient(ellipse 80% 60% at 30% 40%, rgba(124,58,237,0.2) 0%, transparent 65%),
        var(--bg-dark, #0b0f26);
    border-right: 1px solid var(--border, rgba(255,255,255,0.07));
    overflow: hidden;
}

/* Glow decorativo */
.auth-hero__glow {
    position: absolute;
    top: -80px;
    left: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.auth-hero__body {
    position: relative;
    z-index: 1;
}

/* Badge "pill" superior */
.auth-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
    width: fit-content;
}

.auth-hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-c, #a855f7);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(168,85,247,0.6); }
    50%       { box-shadow: 0 0 0 5px rgba(168,85,247,0); }
}

/* Título hero */
.auth-hero__title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

.auth-hero__title span {
    color: var(--accent-c, #a855f7);
}

/* Descripción */
.auth-hero__desc {
    font-size: 0.95rem;
    color: var(--text-muted, #b9b3d2);
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 400px;
}

/* Lista de features */
.auth-hero__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.auth-hero__list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.auth-hero__list li i {
    font-size: 1rem;
    color: var(--accent-c, #a855f7);
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

/* Tagline inferior */
.auth-hero__tagline {
    position: relative;
    z-index: 1;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted, #b9b3d2);
    margin: 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border, rgba(255,255,255,0.07));
}

/* Hero oculto en mobile */
@media (max-width: 991px) {
    .auth-hero {
        display: none;
    }
}

/* =============================================
   FORM WRAP — columna derecha
============================================= */

.auth-form-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: var(--bg-deep, #06091a);
    min-height: 100vh;
    gap: 1rem;
}

/* ── Card del formulario ── */
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card, #111630);
    border: 1px solid var(--border, rgba(255,255,255,0.07));
    border-radius: 20px;
    padding: 2.25rem 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* Versión ancha para owner request (2 columnas de inputs) */
.auth-card--wide {
    max-width: 760px;
}

/* ── Header de la card ── */
.auth-card__header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-p, #7c3aed), var(--accent-c, #a855f7));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 1rem;
    box-shadow: 0 6px 20px rgba(124,58,237,0.35);
}

.auth-card__title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.3rem;
    letter-spacing: -0.3px;
}

.auth-card__sub {
    font-size: 0.875rem;
    color: var(--text-muted, #b9b3d2);
    margin: 0;
}

/* ── Footer de la card ── */
.auth-card__footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border, rgba(255,255,255,0.07));
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted, #b9b3d2);
}

.auth-card__link {
    color: var(--accent-c, #a855f7);
    font-weight: 600;
    text-decoration: none;
    margin-left: 0.3rem;
    transition: color 0.2s;
}

.auth-card__link:hover {
    color: #c084fc;
}

/* ── Grid 2 columnas (owner request) ── */
.auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.5rem;
}

@media (max-width: 600px) {
    .auth-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   CAMPOS
============================================= */

.auth-field {
    margin-bottom: 1.1rem;
}

.auth-field__label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted, #b9b3d2);
    margin-bottom: 0.4rem;
}

.auth-field__label i {
    font-size: 0.82rem;
    color: var(--accent-c, #a855f7);
    opacity: 0.85;
}

/* Inputs y textarea */
.auth-input {
    width: 100%;
    padding: 0.6rem 0.9rem;
    font-size: 0.875rem;
    color: #fff;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border, rgba(255,255,255,0.07));
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    font-family: inherit;
}

.auth-input:focus {
    border-color: rgba(168,85,247,0.65);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 3px rgba(168,85,247,0.14);
}

.auth-input::placeholder {
    color: rgba(185,179,210,0.35);
}

.auth-input[type="date"] {
    color-scheme: dark;
}

.auth-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Error de campo */
.auth-field__error {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: #f87171;
    margin-top: 0.35rem;
}

.auth-field__error i {
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* =============================================
   ALERTA GENERAL
============================================= */

.auth-alert {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
    background: rgba(248,113,113,0.1);
    border: 1px solid rgba(248,113,113,0.2);
    color: #f87171;
    max-width: 760px;
    width: 100%;
}

.auth-alert--warning {
    background: rgba(251,191,36,0.08);
    border-color: rgba(251,191,36,0.2);
    color: #fbbf24;
}

/* =============================================
   BOTÓN SUBMIT
============================================= */

.auth-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-p, #7c3aed), var(--accent-c, #a855f7));
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 6px 20px rgba(124,58,237,0.35);
    margin-top: 0.5rem;
    font-family: inherit;
}

.auth-btn:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(124,58,237,0.45);
    color: #fff;
}

.auth-btn:active {
    transform: translateY(0);
}

/* =============================================
   RESPONSIVE — form wrap en mobile
============================================= */

@media (max-width: 991px) {
    .auth-form-wrap {
        min-height: 100vh;
        padding: 2rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.75rem 1.25rem;
        border-radius: 16px;
    }

    .auth-card__title {
        font-size: 1.3rem;
    }
}