/* =========================
   LOGIN PAGE
   ========================= */
.wrap > .container {
    padding: 0 !important;
    width: 100%;
}

.wrap {
    padding: 0 !important;
}

.auth-page {
    min-height: calc(100vh - 64px);
    display: flex;
    justify-content: center;
    padding: 120px 16px;
    min-height: 100vh;
    align-items: start;
    gap: 120px;
}

/* Card principal */
.auth-card {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(to bottom, #161a20, #0f1216);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
    border: 1px solid rgba(201, 169, 110, 0.25);
    backdrop-filter: blur(6px);
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo {
    height: 42px;
    margin-bottom: 14px;
    opacity: 0.9;
}

.auth-header h1 {
    font-size: 22px;
    margin: 0 0 10px;
    color: #ffffff;
    font-weight: 600;
}

.auth-header p {
    font-size: 14px;
    color: #9ea7b3;
    margin: 0;
}

/* Google */
.auth-google {
    margin-bottom: 18px;
}

.auth-google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #ffffff;
    color: #111;
    font-weight: 500;
    transition: all 0.2s ease;
}

.auth-google-btn:hover {
    background: #f3f3f3;
    transform: translateY(-1px);
}

/* Divider */
.auth-divider {
    text-align: center;
    margin: 18px 0;
    position: relative;
    font-size: 13px;
    color: #7f8791;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: rgba(255,255,255,0.08);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

/* Inputs */
.auth-fields {
    margin-bottom: 10px;
}

.login-label {
    display: none;
}

.login-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 10px 12px;
    color: #ffffff;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.login-input::placeholder {
    color: #7f8791;
}

.login-input:focus {
    border-color: rgba(201, 169, 110, 0.6);
    box-shadow: 0 0 0 2px rgba(201,169,110,0.2);
    outline: none;
}

/* Errores */
.login-error {
    font-size: 12px;
    color: #ff6b6b;
    margin-top: -8px;
    margin-bottom: 10px;
}

/* Opciones */
.auth-options {
    text-align: right;
    margin-bottom: 18px;
}

.auth-options a {
    font-size: 13px;
    color: #9ea7b3;
    text-decoration: none;
}

.auth-options a:hover {
    color: #ffffff;
}

/* Botón principal */
.auth-submit-btn {
    width: 100%;
    border-radius: 999px;
    padding: 10px;
    font-weight: 600;
    background: linear-gradient(to right, #c9a96e, #b8955b);
    border: none;
    color: #1a1a1a;
    transition: all 0.2s ease;
}

.auth-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(201,169,110,0.35);
}

/* Registro */
.auth-register {
    text-align: center;
    margin-top: 20px;
}

.auth-register p {
    font-size: 13px;
    color: #7f8791;
    margin-bottom: 8px;
}

.auth-register-btn {
    border-radius: 999px;
    padding: 8px 14px;
    border: 1px solid rgba(201, 169, 110, 0.4);
    color: #c9a96e;
    background: transparent;
    transition: all 0.2s ease;
}

.auth-register-btn:hover {
    background: rgba(201,169,110,0.1);
    color: #ffffff;
}

/* Fondo estilo hero */
.auth-page {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            90deg,
            rgba(13, 15, 19, 0.94) 0%,
            rgba(13, 15, 19, 0.82) 42%,
            rgba(13, 15, 19, 0.45) 100%
        ),
        url("../imagenes/backgrounds/bg2.jpg") center / cover no-repeat;
}

/* Oscurecer/suavizar fondo */
.auth-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(201, 169, 110, 0.16), transparent 35%),
        rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

/* Card por encima del fondo */
.auth-card {
    position: relative;
    z-index: 1;
    animation: authFadeIn 0.35s ease both;
}

/* Animación de entrada */
@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-form p {
    font-size: 14px;
    color: #7f8791;
}

.auth-google-custom {
    width: 100%;
    height: 42px;
    border-radius: 12px;
    border: 0;
    background: #fff;
    color: #202124;
    font-weight: 600;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-google-custom:hover {
    /*transform: translateY(-1px);*/
    box-shadow: 0 10px 22px rgba(0,0,0,0.22);
}

.auth-google-custom i {
    color: #4285f4;
}

.auth-google-hidden {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* Mobile */

@media (max-width: 767px) {
    .auth-page {
        display: flex;
        flex-direction: column;
        gap: 18px;
        max-width: 420px;
        width: 100%;
    }

    .auth-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 24px 18px;
    }

    .auth-header h1 {
        font-size: 20px;
    }

    .auth-divider::before,
    .auth-divider::after {
        width: 20%;
    }
}