/* Estilos globales */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Arial', sans-serif;
    height: 100vh;
    background: #232526;
    color: #FFF;
}

/* Contenedor principal */
.container {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #232526, #414345);
    transition: all 0.5s ease-in-out;
}

/* Formulario de login */
.login-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.login-container:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.8rem;
    letter-spacing: 1.2px;
}

.form-control {
    margin-bottom: 1.2rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: bold;
    font-size: 0.95rem;
}

input {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: box-shadow 0.3s ease-in-out, border-color 0.3s;
}
input:focus {
    outline: none;
    border-color: #6e8efb;
    box-shadow: 0 0 10px rgba(110, 142, 251, 0.5);
}

button {
    width: 100%;
    padding: 0.8rem;
    background: #ff9747;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}
button:hover {
    background-color: #ffa64d;
    transform: translateY(-2px);
}

.footer {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #ccc;
}

/* Pantalla de carga */
.loading-page {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(to right, #fc4a1a, #f7b733);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1s ease-in-out;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#svg {
    height: 150px;
    width: 150px;
    stroke: #FFF;
    fill-opacity: 0;
    stroke-width: 3px;
    stroke-dasharray: 4500;
    animation: draw 8s ease forwards;
}
@keyframes draw {
    0% {
        stroke-dashoffset: 4500;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.logo-name {
    color: #FFF;
    font-size: 22px;
    letter-spacing: 10px;
    text-transform: uppercase;
    font-weight: bold;
    margin-left: 20px;
}

/* Adaptación para dispositivos móviles */
@media (max-width: 768px) {
    .login-container {
        padding: 1.5rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    input {
        padding: 0.7rem;
    }
    button {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    .logo-name {
        font-size: 18px;
        letter-spacing: 8px;
    }
}
