/* Importar la fuente Azonix desde una URL */
@font-face {
    font-family: 'Azonix';
    src: url('https://cdn.jsdelivr.net/gh/hidden-identity/azonix@v1.0/Azonix.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Fuente Poppins para el texto general */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --custom-dark-purple: #2c2141;
    --custom-light-purple: #c3a6ff;
    --custom-white-transparent: rgba(255, 255, 255, 0.15);
    --custom-white-border: rgba(255, 255, 255, 0.3);
    --custom-text-color: #f0f0f0;
    --custom-input-bg: rgba(255, 255, 255, 0.2);
}

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--custom-text-color);
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    background-image: url('imagenes/fondo 1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.main-content-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    width: 100%;
}

.form-container {
    background-color: var(--custom-white-transparent);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--custom-white-border);
    z-index: 1;
}

.logo-container {
    text-align: center;
    margin-bottom: 1rem;
}

.logo-container img {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.form-title {
    font-family: 'Azonix', sans-serif;
    font-size: 2.4rem;
    font-weight: normal;
    text-align: center;
    margin-bottom: 2.5rem;
    color: #fff;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.input-field {
    background-color: var(--custom-input-bg);
    border: 1px solid var(--custom-white-border);
    color: var(--custom-text-color);
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--custom-light-purple);
    box-shadow: 0 0 10px rgba(195, 166, 255, 0.5);
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: #ffffff;
    color: var(--custom-dark-purple);
    padding: 0.9rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 1.5rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #f0f0f0;
    transform: scale(1.02);
}

.link-text {
    color: var(--custom-text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-text:hover {
    color: var(--custom-light-purple);
    text-decoration: underline;
}

.form-footer-text {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.95rem;
}

.social-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin: 2rem 0;
}

.social-divider .line {
    flex-grow: 1;
    height: 1px;
    background-color: var(--custom-white-border);
}

.social-divider .text {
    padding: 0 1rem;
    font-size: 0.9rem;
}

.social-login-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--custom-white-border);
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
}

.btn-social:hover {
    background-color: #fff;
    transform: translateY(-2px);
}

.btn-social i {
    font-size: 1.2rem;
}

.btn-social.facebook i {
    color: #1877F2;
}

.btn-social.google i {
    color: #DB4437;
}

.main-footer {
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

#alert-modal-container {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#alert-modal-container.alert-modal-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#alert-modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(18, 14, 29, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#alert-modal-content {
    position: relative;
    z-index: 1001;
    background-color: var(--custom-dark-purple);
    border: 1px solid var(--custom-white-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#alert-modal-container:not(.alert-modal-hidden) #alert-modal-content {
    transform: scale(1);
}

#alert-modal-icon-container {
    margin-bottom: 1.5rem;
}

#alert-modal-icon-container .icon {
    width: 64px;
    height: 64px;
}

#alert-modal-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0 0 0.75rem 0;
}

#alert-modal-message {
    font-size: 1rem;
    color: var(--custom-text-color);
    line-height: 1.6;
    margin: 0;
}

#alert-modal-close-btn {
    background-color: var(--custom-light-purple);
    color: var(--custom-dark-purple);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 2rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 1rem;
}

#alert-modal-close-btn:hover {
    background-color: #d1baff;
    transform: scale(1.03);
}

/* === INICIO: ESTILOS PARA VALIDACIÓN EN TIEMPO REAL (INLINE) === */

.validation-message {
    display: none;
    font-size: 0.85rem;
    padding: 0.4rem 0 0 0.2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.validation-message.success {
    display: flex;
    color: #2ECC71;
}

.validation-message.error {
    display: flex;
    color: #E74C3C;
}

.input-field.input-success {
    border-color: #2ECC71;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.4);
}

.input-field.input-error {
    border-color: #E74C3C;
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.4);
}

.validation-message svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
/* === FIN: ESTILOS PARA VALIDACIÓN EN TIEMPO REAL (INLINE) === */