/* registro_anfitrion.css — Split Hero Login */

.host-auth {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: #f9fafb;
}

.host-auth__card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 900px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* — Brand Panel — */
.host-auth__brand {
    background: linear-gradient(135deg, #8A2BE2 0%, #4c1d95 100%);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.host-auth__logo {
    font-size: 1.375rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}
.host-auth__logo span { font-weight: 300; opacity: 0.9; }

.host-auth__title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.625rem;
}

.host-auth__subtitle {
    font-size: 0.875rem;
    opacity: 0.85;
    line-height: 1.5;
    margin: 0 0 2rem;
}

.host-auth__features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.host-auth__features li {
    font-size: 0.8125rem;
    opacity: 0.9;
    padding-left: 1.5rem;
    position: relative;
}
.host-auth__features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    opacity: 0.7;
}

.host-auth__security {
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.75rem;
    opacity: 0.65;
}

/* — Form Panel — */
.host-auth__form-panel {
    background: #fff;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.host-auth__form-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.25rem;
}

.host-auth__form-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 1.75rem;
}

.host-auth__error-box {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}
.host-auth__error-box p {
    margin: 0;
    font-size: 0.8125rem;
    color: #dc2626;
}

.host-auth__field {
    margin-bottom: 1.25rem;
}
.host-auth__field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.375rem;
}
.host-auth__field input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.875rem;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.host-auth__field input:focus {
    outline: none;
    border-color: #8A2BE2;
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1);
}
.host-auth__field.has-error input {
    border-color: #dc2626;
}
.host-auth__field-error {
    display: block;
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 0.25rem;
}

/* Client-side JS validation error messages */
.host-auth__field .client-error,
.host-auth__field .error-message {
    color: #dc2626;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.host-auth__field input.is-invalid {
    border-color: #dc2626;
}

.host-auth__options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.8125rem;
}
.host-auth__remember {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #6b7280;
    cursor: pointer;
}
.host-auth__remember input { accent-color: #8A2BE2; }
.host-auth__forgot {
    color: #8A2BE2;
    text-decoration: none;
    font-weight: 500;
}
.host-auth__forgot:hover { text-decoration: underline; }

.host-auth__submit {
    width: 100%;
    padding: 0.75rem;
    background: #8A2BE2;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.host-auth__submit:hover { background: #7c22d4; }

.host-auth__switch {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.8125rem;
    color: #6b7280;
}
.host-auth__switch a {
    color: #8A2BE2;
    font-weight: 600;
    text-decoration: none;
}
.host-auth__switch a:hover { text-decoration: underline; }

/* — Mobile: Stack vertically — */
@media (max-width: 768px) {
    .host-auth { padding: 1rem; }

    .host-auth__card {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .host-auth__brand {
        padding: 2rem 1.5rem;
    }

    .host-auth__features { display: none; }
    .host-auth__security { display: none; }

    .host-auth__form-panel {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .host-auth__brand { padding: 1.5rem 1.25rem; }
    .host-auth__title { font-size: 1.125rem; }
    .host-auth__form-panel { padding: 1.5rem 1.25rem; }
    .host-auth__options { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
}
