:root {
    --gold-primary: #D4AF37;
    --gold-light: #F4E5B1;
    --gold-dark: #B8941E;
    --black-primary: #0a0a0a;
    --black-secondary: #1a1a1a;
    --black-light: #2d2d2d;
    font-size: 16px; /* Base for rem */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--black-primary) 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}
.olvide{
    color :rgb(196, 185, 36);
    padding-top:20px ;
    
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 100%);
    backdrop-filter: blur(0.625rem);
    padding: 0.9375rem 1.875rem;
    display: flex;
    justify-content: flex-start;
    z-index: 1000;
    border-bottom: 0.125rem solid var(--gold-dark);
    box-shadow: 0 0.25rem 1.25rem rgba(212, 175, 55, 0.2);
}

.navbar a {
    color: var(--gold-light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.03125rem;
}

.navbar a:hover {
    color: var(--gold-primary);
    transform: translateX(-0.3125rem);
    text-shadow: 0 0 0.9375rem rgba(212, 175, 55, 0.6);
}

/* CONTENEDOR PRINCIPAL */
.container {
    position: relative;
    overflow: hidden;
    width: 90%;
    max-width: 68.75rem;
    height: 40.625rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(1.25rem);
    border-radius: 1.875rem;
    box-shadow: 
        0 1.25rem 3.75rem rgba(0, 0, 0, 0.5),
        0 0 2.5rem rgba(212, 175, 55, 0.2),
        inset 0 0 0 0.125rem rgba(212, 175, 55, 0.3);
    margin-top: 5rem;
    z-index: 1;
}

/* PANELES */
.panel {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 2.5rem;
    box-sizing: border-box;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#logoPanel {
    left: 0;
    background: linear-gradient(135deg, var(--black-primary) 0%, var(--black-secondary) 100%);
    border-right: 0.125rem solid var(--gold-dark);
}

#logoPanel img {
    width: 12.5rem;
    height: auto;
    margin-bottom: 1.875rem;
    filter: brightness(0) invert(1) drop-shadow(0 0 1.25rem rgba(212, 175, 55, 0.5));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-0.625rem); }
}

#logoPanel h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.25rem;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 1.875rem rgba(212, 175, 55, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 0.625rem rgba(212, 175, 55, 0.5)); }
    to { filter: drop-shadow(0 0 1.25rem rgba(212, 175, 55, 0.8)); }
}

#formPanel {
    left: 50%;
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-primary) 100%);
}

/* FORMULARIOS */
.form-div {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.8s ease;
    padding: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(1.25rem); }
    to { opacity: 1; transform: translateY(0); }
}

.form-div h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.875rem;
    letter-spacing: 0.125rem;
    text-transform: uppercase;
    text-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
}

.form-div input {
    width: 85%;
    padding: 0.875rem 1.25rem;
    margin: 0.75rem 0;
    border: 0.125rem solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(0.625rem);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-div input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-div input:focus {
    border-color: var(--gold-light);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0.9375rem rgba(212, 175, 55, 0.4);
}

.form-div button {
    width: 85%;
    padding: 0.875rem 1.25rem;
    margin: 0.75rem 0;
    background: rgba(255, 255, 255, 0.2);
    border: 0.125rem solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.form-div button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.form-div button:hover::before {
    width: 18.75rem;
    height: 18.75rem;
}

.form-div button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: translateY(-0.1875rem);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.3);
}

.form-div button:active {
    transform: translateY(-0.0625rem);
}

.form-div p {
    margin-top: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.form-div p:hover {
    color: white;
    text-shadow: 0 0 0.625rem rgba(255, 255, 255, 0.5);
}

/* Center the form and its contents */
.cont {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Specific styles for signup form to make inputs smaller */
#signupForm input {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    margin: 0.625rem 0;
}

/* Specific styles for login form */
#loginForm input {
    font-size: 1rem;
    padding: 0.875rem 1.25rem;
    margin: 0.75rem 0;
}

#signupForm button,
#loginForm button {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
}

/* MODALES */
.error-modal,
.success-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2.5rem;
    border-radius: 1.25rem;
    text-align: center;
    z-index: 2000;
    min-width: 21.875rem;
    backdrop-filter: blur(0.625rem);
    box-shadow: 0 1.25rem 3.75rem rgba(0, 0, 0, 0.5);
    animation: modalSlide 0.4s ease;
}

@keyframes modalSlide {
    from { 
        opacity: 0; 
        transform: translate(-50%, -3.75rem); 
    }
    to { 
        opacity: 1; 
        transform: translate(-50%, -50%); 
    }
}

.error-modal {
    background: linear-gradient(135deg, #ff4d4d 0%, #c0392b 100%);
    border: 0.1875rem solid #ffffff;
}

.error-modal h3 {
    font-size: 1.125rem;
    margin-bottom: 0.9375rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.125rem;
}

.error-modal p {
    color: white;
    font-size: 0.6875rem;
    margin-bottom: 1.25rem;
}

.error-modal button {
    background: white;
    color: #c0392b;
    border: none;
    padding: 0.75rem 1.875rem;
    border-radius: 0.625rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.error-modal button:hover {
    background: #f0f0f0;
    transform: scale(1.05);
    box-shadow: 0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.3);
}

.success-modal {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 100%);
    border: 0.1875rem solid var(--gold-dark);
}

.success-modal h3 {
    font-size: 1.125rem;
    margin-bottom: 0.9375rem;
    color: var(--black-primary);
    text-transform: uppercase;
    letter-spacing: 0.125rem;
    font-weight: 700;
}

.success-modal p {
    color: var(--black-secondary);
    font-size: 0.6875rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.success-modal button {
    background: var(--black-primary);
    color: var(--gold-primary);
    border: 0.125rem solid var(--gold-dark);
    padding: 0.75rem 1.875rem;
    border-radius: 0.625rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.success-modal button:hover {
    background: var(--black-secondary);
    color: var(--gold-light);
    transform: scale(1.05);
    box-shadow: 0 0.3125rem 0.9375rem rgba(212, 175, 55, 0.4);
}

/* RESPONSIVE */
@media (max-width: 48rem) { /* 768px */
    body {
        align-items: flex-start;
        padding-top: 5rem;
        overflow-y: auto;
    }

    .container {
        width: 95%;
        height: auto;
        min-height: auto;
        flex-direction: column;
        margin-top: 0;
        border-radius: 1rem;
        padding: 1rem;
    }

    .panel {
        position: relative;
        width: 100%;
        height: auto;
        min-height: auto;
        left: 0 !important;
        padding: 1rem;
        align-items: center; /* Center content on mobile */
    }

    #logoPanel {
        border-right: none;
        border-bottom: 0.125rem solid var(--gold-dark);
        padding-bottom: 1rem;
    }

    #logoPanel img {
        width: 7.5rem; /* Smaller */
    }

    #logoPanel h1 {
        font-size: 1.5rem; /* Smaller font */
    }

    .form-div {
        padding: 1rem;
        align-items: center; /* Ensure centering */
    }

    .form-div h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .form-div input,
    .form-div button {
        width: 100%;
        font-size: 0.875rem;
        padding: 0.625rem 0.875rem;
        margin: 0.375rem 0;
    }

    #signupForm input {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
        margin: 0.3125rem 0;
    }

    #signupForm button {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }

    .error-modal,
    .success-modal {
        min-width: 90%;
        padding: 1.5rem;
        font-size: 0.875rem;
    }

    .error-modal h3,
    .success-modal h3 {
        font-size: 1rem;
    }

    .error-modal p,
    .success-modal p {
        font-size: 0.875rem;
    }

    /* Remove any left paddings on mobile */
    .reg,
    .cont {
        padding-left: 0;
    }
}

/* ANIMACIONES DE ENTRADA */
@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* SCROLLBAR PERSONALIZADO */
::-webkit-scrollbar {
    width: 0.5rem;
}

::-webkit-scrollbar-track {
    background: var(--black-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}
/* Nuevo modal para reset */
.reset-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2.5rem;
    border-radius: 1.25rem;
    text-align: center;
    z-index: 2000;
    min-width: 21.875rem;
    backdrop-filter: blur(0.625rem);
    box-shadow: 0 1.25rem 3.75rem rgba(0, 0, 0, 0.5);
    animation: modalSlide 0.4s ease;
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-primary) 100%);
    border: 0.1875rem solid var(--gold-light);
}

.reset-modal h3 {
    font-size: 1.125rem;
    margin-bottom: 0.9375rem;
    color: var(--black-primary);
    text-transform: uppercase;
    letter-spacing: 0.125rem;
    font-weight: 700;
    text-shadow: 0 0 0.625rem rgba(212, 175, 55, 0.5);
}

.reset-modal p {
    color: var(--black-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.reset-modal p a {
    color: var(--gold-light);
    text-decoration: underline;
    font-weight: 600;
}

.reset-modal button {
    background: var(--black-primary);
    color: var(--gold-primary);
    border: 0.125rem solid var(--gold-dark);
    padding: 0.75rem 1.875rem;
    border-radius: 0.625rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.reset-modal button:hover {
    background: var(--black-secondary);
    color: var(--gold-light);
    transform: scale(1.05);
    box-shadow: 0 0.3125rem 0.9375rem rgba(212, 175, 55, 0.4);
}