@font-face {
    font-family: 'FreightSansProLight';
    src: url('/static/fonts/FreightSansProLight-Regular.ttf') format('truetype');
}

body {
    margin: 0;
    padding: 0;
    background-color: #1f1f1f;
    color: #fff;
    font-family: 'FreightSansProLight', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    text-align: center;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo {
    width: 18vh; /* Aumentamos el tamaño del logo */
    height: auto;
    margin-bottom: 20px;
}

.buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-btn, .ios-btn {
    background-color: #18cc72;
    color: #2f2f2f;
    border: none;
    padding: 3% 5%;
    font-size: 18px;
    cursor: pointer;
    border-radius: 3%;
    transition: all 0.3s ease;
    margin: 5%;
    width: 20vh; /* Botones ligeramente más grandes que el logo */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Efecto de relieve */
    transform: translateY(0); /* Inicio sin desplazamiento */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.download-btn:hover {
    background-color: #0e5831;
    color: #fff;
    transform: translateY(-4px); /* Efecto de desplazamiento 3D */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Aumentamos la sombra en hover */
}

.ios-btn {
    background-color: #8e8e93;
}

.ios-btn:hover {
    background-color: #000;
    color: #fff;
    transform: translateY(-4px); /* Efecto de desplazamiento 3D */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Aumentamos la sombra en hover */
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup.hidden {
    display: none;
}

.popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: center;
    width: 300px;
    color: #000; /* Cambiar el color del texto del popup a negro */
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #000;
}

form label {
    display: block;
    margin-bottom: 10px;
    color: #000;
}

form input[type="password"] {
    padding: 10px;
    margin-bottom: 10px;
    width: 90%;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    background-color: #1ce783;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

.success-msg {
    color: green;
    font-size: 0.9em;
    margin-top: 10px;
}

.success-msg.hidden {
    display: none;
}

.hidden {
    display: none;
}

.error-msg {
    color: red;
    font-size: 14px;
    margin-top: 10px;
}

.error-msg.hidden {
    display: none;
}

.submit-btn {
    position: relative;
    background-color: #1ce783; /* Color verde original */
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.4s ease;
}

.submit-btn.loading {
    background-color: #1bd176; /* Verde más oscuro */
}

.loading-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #00000034; /* Verde ligeramente más oscuro */
    z-index: 0; /* La barra de carga se posiciona detrás del texto */
    transition: width 0.4s ease;
}

.submit-btn span {
    position: relative;
    z-index: 1; /* El texto se mantiene por encima de la barra */
}