/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

/* Contenedor principal */
.login-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Background con overlay */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.background-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: -1;
}

/* Header con logo */
.login-header {
    position: absolute;
    top: 20px;
    left: 50px;
    z-index: 10;
}

.site-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.site-logo-text {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

/* Contenedor del formulario */
.login-form-container {
    width: 100%;
    max-width: 450px;
    background-color: rgba(0, 0, 0, 0.75);
    border-radius: 4px;
    padding: 60px 68px 40px;
    margin-top: 80px;
    z-index: 1;
}

/* Formulario */
.login-form {
    width: 100%;
}

.login-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 28px;
    color: #fff;
}

/* Mensajes de error */
.error-message {
    background-color: #e87c03;
    border-radius: 4px;
    padding: 10px 20px;
    margin-bottom: 16px;
    font-size: 14px;
}

.error-message p {
    margin: 0;
}

/* Grupos de formulario */
.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-input {
    width: 100%;
    height: 50px;
    background-color: #333;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 0 20px;
    font-size: 16px;
    color: #fff;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    background-color: #454545;
    border-color: #fff;
}

.form-input::placeholder {
    color: #8c8c8c;
}

.form-input.error {
    border-bottom: 2px solid #e87c03;
}

.field-error {
    display: block;
    color: #e87c03;
    font-size: 13px;
    margin-top: 6px;
}

/* Botón de login */
.login-button {
    width: 100%;
    height: 50px;
    background-color: #e50914;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    margin-top: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-button:hover {
    background-color: #f40612;
}

.login-button:active {
    background-color: #b20710;
}

/* Opciones del formulario */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    color: #b3b3b3;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.help-link {
    color: #b3b3b3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.help-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Footer del formulario */
.form-footer {
    margin-top: 16px;
    text-align: center;
}

.signup-link {
    color: #737373;
    font-size: 16px;
}

.signup-link a {
    color: #fff;
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Footer de la página */
.login-footer {
    position: absolute;
    bottom: 20px;
    width: 100%;
    max-width: 450px;
    text-align: center;
    z-index: 1;
}

.reCAPTCHA-notice {
    color: #8c8c8c;
    font-size: 13px;
    line-height: 1.5;
}

.reCAPTCHA-notice a {
    color: #0071eb;
    text-decoration: none;
}

.reCAPTCHA-notice a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .login-header {
        left: 20px;
        top: 15px;
    }

    .site-logo {
        height: 35px;
    }

    .site-logo-text {
        font-size: 1.5rem;
    }

    .login-form-container {
        padding: 40px 30px;
        margin-top: 60px;
    }

    .login-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .login-form-container {
        padding: 30px 20px;
        margin-top: 40px;
    }

    .login-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .form-input {
        height: 45px;
        font-size: 14px;
    }

    .login-button {
        height: 45px;
        font-size: 14px;
    }
}
