/* login.css - Versión Ultra Minimalista */

/* Contenedor principal */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 160px);
    padding: 20px;
    background: #fafafa;
    position: relative;
}

/* Contenedor central */
.login-center {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.04),
        0 1px 2px rgba(0, 0, 0, 0.02);
    text-align: center;
}

/* Logo */
.login-logo {
    margin-bottom: 40px;
}

.login-logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
}

/* Formulario */
.login-form {
    margin-bottom: 30px;
}

.form-field {
    position: relative;
    margin-bottom: 30px;
}

/* Campo de entrada */
.nit-input {
    width: 100%;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    background: transparent;
    border: none;
    outline: none;
    text-align: center;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.nit-input::placeholder {
    color: #999;
    font-weight: 400;
    letter-spacing: normal;
}

.nit-input:focus::placeholder {
    opacity: 0.5;
}

/* Línea animada del input */
.input-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #EF982E;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nit-input:focus~.input-line {
    width: 100%;
}

/* Botón */
.login-button {
    width: 100%;
    padding: 16px 24px;
    background: #EF982E;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.login-button:hover {
    background: #ff8c42;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 152, 46, 0.25);
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(239, 152, 46, 0.2);
}

/* Texto de ayuda */
.login-help {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.login-help p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.login-help a {
    color: #EF982E;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-help a:hover {
    color: #333;
    text-decoration: underline;
}

/* Efectos de enfoque mejorados */
.nit-input:focus {
    color: #EF982E;
    letter-spacing: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        min-height: calc(100vh - 140px);
    }

    .login-center {
        padding: 30px 20px;
        max-width: 340px;
    }

    .login-logo img {
        height: 60px;
    }

    .nit-input {
        font-size: 16px;
        padding: 14px 0;
    }

    .login-button {
        padding: 14px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .login-container {
        min-height: calc(100vh - 120px);
        padding: 15px;
    }

    .login-center {
        padding: 25px 15px;
        border-radius: 12px;
    }

    .login-logo {
        margin-bottom: 30px;
    }

    .login-logo img {
        height: 50px;
    }

    .form-field {
        margin-bottom: 25px;
    }

    .login-help p {
        font-size: 13px;
    }
}

/* Animación sutil de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-center {
    animation: fadeInUp 0.5s ease-out;
}

/* Fondo sutil con patrón */
.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(239, 152, 46, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 85% 50%, rgba(72, 106, 173, 0.03) 0%, transparent 50%);
    z-index: -1;
}