/* ============================================
   PÁGINAS DE AUTENTICACIÓN - LOGIN Y REGISTRO
   ============================================ */

body.page-template-page-login,
body.page-template-page-registro,
body.page-template-page-editar-cuenta,
body.page-template-page-recuperar-contrasena {
    background: #0a0a0a !important;
    color: #e5e5e5 !important;
    padding-top: 70px;
}

body.admin-bar.page-template-page-login,
body.admin-bar.page-template-page-registro,
body.admin-bar.page-template-page-editar-cuenta,
body.admin-bar.page-template-page-recuperar-contrasena {
    padding-top: 102px;
}

@media screen and (max-width: 782px) {
    body.admin-bar.page-template-page-login,
    body.admin-bar.page-template-page-registro,
    body.admin-bar.page-template-page-editar-cuenta,
    body.admin-bar.page-template-page-recuperar-contrasena {
        padding-top: 116px;
    }
}

body.page-template-page-login .site-header,
body.page-template-page-registro .site-header,
body.page-template-page-editar-cuenta .site-header,
body.page-template-page-recuperar-contrasena .site-header {
    background: rgb(0 0 0 / 81%) !important;
    border-bottom: none !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 !important;
    transition: background 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), backdrop-filter 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body.page-template-page-login .site-header.scrolled,
body.page-template-page-registro .site-header.scrolled,
body.page-template-page-editar-cuenta .site-header.scrolled,
body.page-template-page-recuperar-contrasena .site-header.scrolled {
    background: rgba(15, 15, 15, 0.92) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

body.page-template-page-login .site-header.scrolled .header-container,
body.page-template-page-registro .site-header.scrolled .header-container,
body.page-template-page-editar-cuenta .site-header.scrolled .header-container,
body.page-template-page-recuperar-contrasena .site-header.scrolled .header-container {
    padding: 12px 4%;
    height: 50px;
}

body.page-template-page-login .site-title a,
body.page-template-page-login .site-title,
body.page-template-page-registro .site-title a,
body.page-template-page-registro .site-title,
body.page-template-page-editar-cuenta .site-title a,
body.page-template-page-editar-cuenta .site-title,
body.page-template-page-recuperar-contrasena .site-title a,
body.page-template-page-recuperar-contrasena .site-title {
    color: #ffffff !important;
    font-size: 2.2em;
    font-weight: 600;
    letter-spacing: -0.3px;
    margin: 0;
    text-decoration: none;
    transition: font-size 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    height: 100%;
}

body.page-template-page-login .site-header.scrolled .site-title a,
body.page-template-page-login .site-header.scrolled .site-title,
body.page-template-page-registro .site-header.scrolled .site-title a,
body.page-template-page-registro .site-header.scrolled .site-title,
body.page-template-page-editar-cuenta .site-header.scrolled .site-title a,
body.page-template-page-editar-cuenta .site-header.scrolled .site-title,
body.page-template-page-recuperar-contrasena .site-header.scrolled .site-title a,
body.page-template-page-recuperar-contrasena .site-header.scrolled .site-title {
    font-size: 1.8em;
}

body.page-template-page-login .site-logo-img,
body.page-template-page-registro .site-logo-img,
body.page-template-page-editar-cuenta .site-logo-img,
body.page-template-page-recuperar-contrasena .site-logo-img {
    height: 70px;
    transition: height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body.page-template-page-login .site-header.scrolled .site-logo-img,
body.page-template-page-registro .site-header.scrolled .site-logo-img,
body.page-template-page-editar-cuenta .site-header.scrolled .site-logo-img,
body.page-template-page-recuperar-contrasena .site-header.scrolled .site-logo-img {
    height: 50px;
}

body.page-template-page-login .main-navigation a,
body.page-template-page-registro .main-navigation a,
body.page-template-page-editar-cuenta .main-navigation a,
body.page-template-page-recuperar-contrasena .main-navigation a {
    color: #e5e5e5 !important;
}

body.page-template-page-login .main-navigation a:hover,
body.page-template-page-registro .main-navigation a:hover,
body.page-template-page-editar-cuenta .main-navigation a:hover,
body.page-template-page-recuperar-contrasena .main-navigation a:hover {
    color: #fff !important;
}

/* ============================================
   BREADCRUMBS - Páginas de autenticación
   ============================================ */
.auth-breadcrumb {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4%;
    padding-bottom: 20px;
    flex-shrink: 0;
}

.auth-breadcrumb-inner {
    font-size: 0.9em;
    color: #999;
}

.auth-breadcrumb-inner a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-breadcrumb-inner a:hover {
    color: #fff;
}

.auth-breadcrumb-sep {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.4);
}

.auth-breadcrumb-inner span:last-child {
    color: #e5e5e5;
}

.auth-breadcrumb-editar {
    padding-bottom: 24px;
}

/* ============================================
   LOGIN - Layout 50/50 minimalista
   ============================================ */
.login-split-section {
    padding: 0 0 80px;
    background: #0a0a0a;
    min-height: calc(100vh - 70px);
}

.login-split-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: center;
    min-height: calc(100vh - 190px);
}

.login-split-container-registro {
    align-items: start;
    min-height: auto;
    padding: 20px 4% 80px;
}

.login-form-col {
    padding: 0 40px 0 0;
}

.login-page-title {
    font-size: 1.75em;
    font-weight: 600;
    color: #fff;
    margin: 0 0 28px 0;
    letter-spacing: -0.02em;
}

.login-divider {
    width: 1px;
    min-height: 280px;
    background: rgba(255, 255, 255, 0.12);
    align-self: stretch;
}

.login-benefits-col {
    padding: 0 0 0 40px;
}

.login-benefits-title {
    font-size: 1.35em;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px 0;
}

.login-benefits-intro {
    font-size: 0.95em;
    color: #999;
    margin: 0 0 20px 0;
}

.login-benefits-list {
    list-style: none;
    margin: 0 0 28px 0;
    padding: 0;
}

.login-benefits-list li {
    position: relative;
    padding: 8px 0 8px 24px;
    color: #b0b0b0;
    font-size: 0.95em;
    line-height: 1.5;
}

.login-benefits-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.login-benefits-cta {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.95em;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s, border-color 0.2s;
}

.login-benefits-cta:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Formulario minimalista (login) */
.auth-form-minimal .form-group {
    margin-bottom: 16px;
}

.auth-submit-minimal {
    background: #fff !important;
    color: #0a0a0a !important;
    margin-top: 24px;
    box-shadow: none !important;
}

.auth-submit-minimal:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    transform: none;
}

.auth-form-minimal .auth-link {
    color: #999;
}

.auth-form-minimal .auth-link:hover {
    color: #fff;
}

.auth-form-minimal .form-checkbox-label input[type="checkbox"] {
    accent-color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 992px) {
    .login-split-container {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 40px;
    }

    .login-divider {
        width: 100%;
        min-height: 1px;
    }

    .login-form-col {
        padding: 0;
    }

    .login-benefits-col {
        padding: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        padding-top: 40px;
    }
}

@media (max-width: 620px) {
    .login-split-section {
        padding: 30px 0 60px;
    }

    .login-page-title {
        font-size: 1.5em;
    }

    .login-benefits-title {
        font-size: 1.2em;
    }
}

/* Auth Form Section (registro, editar cuenta) */
.auth-form-section {
    padding: 40px 0 60px;
    background: #0a0a0a;
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-form-section .auth-form-container {
    align-self: center;
}

.auth-form-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 4%;
    width: 100%;
}

.auth-form-container-wide {
    max-width: 560px;
}

.auth-form-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.auth-form-header {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.auth-icon {
    opacity: 0.9;
}

.auth-form-title {
    font-size: 2em;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #8a6ea8 0%, #5a4870 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.auth-form-subtitle {
    font-size: 1em;
    line-height: 1.5;
    color: #b0b0b0;
    margin: 0;
    max-width: 400px;
}

/* Auth Form */
.auth-form {
    width: 100%;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form .form-group-remember {
    margin-bottom: 10px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: #e5e5e5;
    font-weight: 500;
    font-size: 0.95em;
}

.auth-form .required {
    color: #ff6b6b;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1em;
    line-height: 1.5;
    transition: all 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(70, 55, 89, 0.6);
    box-shadow: 0 0 0 3px rgba(70, 55, 89, 0.12);
}

.auth-form input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.auth-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    box-sizing: border-box;
    resize: vertical;
    min-height: 80px;
}

.auth-form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(70, 55, 89, 0.6);
    box-shadow: 0 0 0 3px rgba(70, 55, 89, 0.12);
}

.auth-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Minimal: login, registro y editar cuenta (sobrescribe .auth-form anterior por especificidad y orden) */
.auth-form.auth-form-minimal input[type="text"],
.auth-form.auth-form-minimal input[type="email"],
.auth-form.auth-form-minimal input[type="password"] {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: none;
}

.auth-form.auth-form-minimal input[type="text"]:focus,
.auth-form.auth-form-minimal input[type="email"]:focus,
.auth-form.auth-form-minimal input[type="password"]:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.38);
    box-shadow: none;
}

.auth-form.auth-form-minimal textarea {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: none;
}

.auth-form.auth-form-minimal textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.38);
    box-shadow: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 520px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.auth-form-divider {
    margin: 24px 0 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-form-divider span {
    font-size: 0.9em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.veranime-turnstile-wrap {
    margin: 12px 0 20px;
}

.veranime-turnstile-wrap .cf-turnstile {
    display: flex;
    justify-content: flex-start;
}

/* Imagen de perfil */
.profile-photo-group {
    margin-bottom: 24px;
}

.profile-photo-preview-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.profile-photo-preview {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
}

.profile-photo-preview img,
.profile-photo-preview .account-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.auth-file-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #e5e5e5;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-file-label:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.auth-remove-photo-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e57373;
    font-size: 0.9em;
    cursor: pointer;
}

.auth-remove-photo-label:hover {
    color: #ef9a9a;
}

.auth-remove-photo-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #e57373;
    cursor: pointer;
}

.profile-photo-hint {
    margin: 8px 0 0;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.5);
}

.profile-photo-preview-status {
    margin: 10px 0 0;
    font-size: 0.88em;
    color: rgba(180, 220, 180, 0.9);
    line-height: 1.4;
}

/* Checkbox recordarme */
.form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
    margin: 0;
}

.form-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #8a6ea8;
    cursor: pointer;
}

/* Mensajes */
.auth-message {
    margin-bottom: 20px;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 0.95em;
    line-height: 1.5;
}

.auth-message-error {
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #e57373;
}

.auth-message-success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #81c784;
}

/* Botón de envío */
.auth-submit {
    width: 100%;
    padding: 14px 28px;
    background: #463759;
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-family: inherit;
}

.auth-submit:hover {
    transform: translateY(-2px);
    background: #5a4870;
    box-shadow: 0 10px 25px rgba(70, 55, 89, 0.35);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-submit svg {
    flex-shrink: 0;
}

/* Enlaces adicionales */
.auth-form-links {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.95em;
    color: #b0b0b0;
}

.auth-form-links-centered {
    border-top: none;
    padding-top: 0;
}

.auth-link {
    color: #8a6ea8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #c4a8d8;
    text-decoration: underline;
}

.auth-link-sep {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.3);
}

.auth-link-button {
    display: inline-block;
    padding: 12px 24px;
    background: #463759;
    color: #fff !important;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.auth-link-button:hover {
    transform: translateY(-2px);
    background: #5a4870;
    box-shadow: 0 10px 25px rgba(70, 55, 89, 0.35);
}

/* Responsive */
@media (max-width: 768px) {
    .auth-form-section {
        padding: 30px 0 50px;
    }

    .auth-form-card {
        padding: 30px 20px;
        border-radius: 15px;
    }

    .auth-form-title {
        font-size: 1.75em;
    }

    .auth-form-subtitle {
        font-size: 0.95em;
    }
}

@media (max-width: 620px) {
    body.page-template-page-login,
    body.page-template-page-registro,
    body.page-template-page-editar-cuenta,
    body.page-template-page-recuperar-contrasena {
        padding-top: 60px;
    }

    .auth-form-section {
        padding: 25px 0 40px;
    }

    .auth-form-card {
        padding: 25px 16px;
    }

    .auth-form-title {
        font-size: 1.5em;
    }

    .auth-form-subtitle {
        font-size: 0.9em;
    }

    .auth-form-header {
        gap: 12px;
        margin-bottom: 25px;
    }

    .auth-icon {
        width: 40px;
        height: 40px;
    }

    .auth-form .form-group {
        margin-bottom: 15px;
    }

    .auth-form input[type="text"],
    .auth-form input[type="email"],
    .auth-form input[type="password"] {
        height: 46px;
        min-height: 46px;
        padding: 0 14px;
        font-size: 0.95em;
    }

    .auth-submit {
        padding: 13px 24px;
        font-size: 1em;
    }

    .auth-form-links {
        margin-top: 20px;
        padding-top: 18px;
        font-size: 0.9em;
    }
}
