/* login.css - Estilos exclusivos para login.html */
/* Basado en la elegancia de styles.css de la notaría */

:root {
    --primary: #0a0a0b;
    --gold: #b2945e;
    --gold-light: #dfc692;
    --white: #ffffff;
    --gray-800: #1a1a1c;
    --glass: rgba(255, 255, 255, 0.03);
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #0a0a0b 0%, #1a1a1c 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(178, 148, 94, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(178, 148, 94, 0.08) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.login-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid rgba(178, 148, 94, 0.3);
    width: 100%;
    max-width: 400px;
    position: relative;
    animation: fadeInUp 0.8s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    text-align: center;
    color: var(--gold);
    margin-bottom: 40px;
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(178, 148, 94, 0.3);
}

.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: transparent;
    color: var(--gold);
    border: 1px solid rgba(178, 148, 94, 0.3);
    padding: 8px 15px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    border-radius: 5px;
    font-weight: 400;
}

.back-btn:hover {
    background: rgba(178, 148, 94, 0.1);
    border-color: var(--gold);
}

h2 {
    text-align: center;
    color: var(--gold);
    margin-bottom: 30px;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    font-weight: 400;
}

input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(178, 148, 94, 0.3);
    padding: 15px 0;
    color: var(--white);
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: border-color 0.3s ease;
}

input:focus {
    outline: none;
    border-bottom-color: var(--gold);
    background: transparent;
    color: var(--white);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    letter-spacing: 2px;
}

input:-webkit-autofill,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px transparent inset;
    -webkit-text-fill-color: var(--white);
    transition: background-color 5000s ease-in-out 0s;
    background-color: transparent;
}

button {
    width: 100%;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 15px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    border-radius: 5px;
    font-weight: 500;
}

button:hover {
    background: var(--gold);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(178, 148, 94, 0.4);
}

.error {
    color: #ff6b6b;
    text-align: center;
    margin-top: 20px;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.loading {
    display: none;
    text-align: center;
    margin-top: 20px;
    color: var(--gold);
    font-size: 0.7rem;
    letter-spacing: 1px;
    font-weight: 300;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        margin: 20px;
        padding: 30px 25px;
    }
    
    .logo {
        font-size: 1.3rem;
        margin-bottom: 30px;
    }
    
    h2 {
        font-size: 1rem;
    }
    
    button {
        padding: 12px;
        font-size: 0.8rem;
    }
    
    .back-btn {
        top: 10px;
        left: 10px;
        padding: 5px 10px;
        font-size: 0.6rem;
    }
}

/* Ambos botones (Ingresar y Regresar) idénticos */
button,
.back-button {
    width: 100%;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 15px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    border-radius: 5px;
    font-weight: 500;
    margin-top: 0;
}

button:hover,
.back-button:hover {
    background: var(--gold);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(178, 148, 94, 0.4);
}

/* Separación entre botones */
.back-button {
    margin-top: 15px;
}