* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url('../../img/fondologin.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: 'Montserrat', sans-serif;
    overflow-y: auto;
}

.contenedor_logo {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 2vh; /* Fixed closer to the top */
    left: 50%;
    transform: translateX(-50%);
}

.logo_login {
    width: 12rem;
    height: 12rem;
    display: block;
}

.marginerror {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 600px; /* Widened container */
}

.contenedor {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 600px; /* Widened container */
    padding: 20px;
}

/* Card */
.tarjeta {
    margin-bottom: 2em;
    margin-top: 14em; /* Adjusted for logo fixed at top */
    background: rgba(0, 0, 0, 0.9);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(255, 193, 7, 0.2),
                inset 0 0 15px rgba(255, 193, 7, 0.05);
    width: 100%;
    padding: 40px;
    backdrop-filter: blur(8px);
}

/* Frontal Section */
.frontal h2 {
    color: #ffc107;
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Description */
.frontal p {
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Credits List */
.credits-list {
    list-style: none;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.8;
    margin-top: 20px;
}

.credits-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 193, 7, 0.1);
}

.credits-list li:last-child {
    border-bottom: none;
}

.credits-list a {
    color: #ffc107;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.credits-list a:hover {
    color: #ff8c00;
}

/* Links */
.frontal a {
    color: #ffc107;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.frontal a:hover {
    color: #ff8c00;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .marginerror, .contenedor {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .logo_login {
        width: 10rem;
        height: 10rem;
    }

    .tarjeta {
        margin-top: 12em;
    }

    .marginerror, .contenedor {
        max-width: 450px;
    }
}

@media (max-width: 480px) {
    .logo_login {
        width: 10rem;
        height: 10rem;
    }

    .tarjeta {
        margin-top: 12em;
        padding: 25px;
    }

    .frontal h2 {
        font-size: 24px;
    }

    .credits-list {
        font-size: 12px;
    }

    .marginerror, .contenedor {
        max-width: 90%;
    }

    .contenedor_logo {
        top: 1vh;
    }
}

@media (max-height: 600px) {
    .logo_login {
        width: 10rem;
        height: 10rem;
    }

    .tarjeta {
        margin-top: 10em;
    }

    .contenedor_logo {
        top: 1vh;
    }
}

@media (max-height: 400px) {
    .logo_login {
        width: 8rem;
        height: 8rem;
    }

    .tarjeta {
        margin-top: 8em;
    }

    .contenedor_logo {
        top: 1vh;
    }
}