/* Abascal Boutique Legal - Identidad Visual Actualizada */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif; /* Tipografía de la imagen */
}

:root {
    --gold: #c5a059;
    --dark-bg: #0a0a0a;
    --card-bg: #111111;
    --input-bg: #1a1a1a;
    --white: #ffffff;
}

body {
    background-color: var(--dark-bg);
    background-image: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--white);
    overflow-x: hidden;
}

.login-container {
    width: 100%;
    max-width: 400px;
    z-index: 10;
}

.login-card {
    background: var(--card-bg);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9);
    position: relative;
    text-align: center;
}

.card-decoration {
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.main-logo {
    max-width: 220px;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 5px rgba(197, 160, 89, 0.2));
}

/* Inputs con mejor visibilidad */
.form-group {
    margin-bottom: 25px;
    position: relative;
    text-align: left;
}

.input-wrapper input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid #333;
    padding: 18px 15px 8px;
    border-radius: 4px;
    color: var(--white);
    outline: none;
    font-size: 14px;
    transition: 0.3s;
}

.input-wrapper input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.1);
}

.input-wrapper label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: #888; /* Color grisáceo visible */
    pointer-events: none;
    transition: 0.3s;
    font-size: 13px;
}

.input-wrapper input:focus + label,
.input-wrapper input:not(:placeholder-shown) + label {
    transform: translateY(-10px) scale(0.8);
    color: var(--gold);
    font-weight: 700;
}

/* Botón Lingote */
.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #c5a059 0%, #f9e3aa 50%, #8e6d2f 100%);
    background-size: 200% auto;
    border: none;
    padding: 16px;
    border-radius: 4px;
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.5s;
}

.login-btn:hover {
    background-position: right center;
    box-shadow: 0 0 25px rgba(197, 160, 89, 0.4);
}

.btn-shine {
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
}

.login-btn:hover .btn-shine {
    left: 200%;
    transition: 0.7s;
}

/* Hipervínculos Dorados y Bold */
.gold-bold-link {
    color: var(--gold) !important;
    text-decoration: none;
    font-weight: 700; /* BOLD */
    transition: 0.3s;
}

.gold-bold-link:hover {
    text-decoration: underline;
    filter: brightness(1.2);
}

.forgot-password {
    color: var(--gold);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.switch-form {
    margin-top: 25px;
}

.switch-form p {
    font-size: 13px;
    color: #ccc;
}

/* Footer y Certificado Google */
.signup-link {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid #222;
}

.footer-text {
    color: var(--white) !important;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
}

.google-cert {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    opacity: 0.8;
}

.google-icon {
    width: 16px;
    height: 16px;
}

.google-cert span {
    font-size: 11px;
    color: #fff;
    font-weight: 400;
}

/* Background Shapes sutiles */
.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(197, 160, 89, 0.02);
    animation: float 20s infinite ease-in-out;
}
.shape-1 { width: 400px; height: 400px; top: -10%; left: -10%; }
.shape-2 { width: 300px; height: 300px; bottom: -5%; right: -5%; }
@keyframes float { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(-20px, 40px); } }

/* Botón Volver al Sitio Superior Derecha */
.back-to-site {
    position: fixed;
    top: 25px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 18px;
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 4px;
    background: rgba(20, 20, 20, 0.5);
    backdrop-filter: blur(5px);
    transition: 0.3s;
    z-index: 1000;
}

.back-to-site:hover {
    background: var(--gold);
    color: #000;
}

@media (max-width: 480px) {
    .back-to-site {
        top: 15px;
        right: 15px;
        padding: 8px 12px;
    }
    .back-to-site .text { display: none; } /* En móvil muy pequeño solo muestra la flecha */
}