* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(180deg, #070a31, #2d224d);
    color: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: rgba(52, 34, 83, 0.7);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-bottom: 2px solid #7a348f;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.header-content h1 {
    font-size: 28px;
    text-align: center;
}

.logout-btn {
    position: absolute;
    right: 0;
    background: rgba(146, 62, 172, 0.3);
    color: #f8fafc;
    border: 1px solid #923eac;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logout-btn:hover {
    background-color: #923eac;
    box-shadow: 0 0 10px #bf07c5;
    transform: translateY(-1px);
}

main {
    flex: 1;
}

.container {
    width: 100%;
}

.vn-card {
    background-color: #342f53;
    width: 420px;
    max-width: 90%;
    height: auto;
    text-align: center;
    margin: 50px auto 100px auto;
    border-radius: 15px;
    box-shadow: 0 0 15px 2px #7a348f;
    padding-bottom: 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vn-img {
    width: 85%;
    border-radius: 15px;
    margin-top: 32px;
}

p {
    font-size: 20px;
    color: rgb(170, 170, 170);
}

.vndb-btn {
    display: block;
    text-decoration: none;
    background-color: #923eac;
    width: 170px;
    height: 40px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 12px;
    border-radius: 10px;
    padding: 8px 0px;
    font-size: 20px;
    font-weight: bolder;
    color: #e2e2e2;
    box-shadow: 3px 3px #bf07c5;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
}

.vndb-btn:hover {
    background-color: #a847c6;
    box-shadow: 3px 3px 10px #e026e6;
    transform: translateY(-2px);
}

.vndb-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px #bf07c5;
}

h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(122, 52, 143, 0.8);
}

.dev,
.release {
    font-weight: bolder;
}

footer {
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

footer p {
    font-size: 15px;
    color: grey;
}

/* ============================
   ESTILOS DE LOGIN
   ============================ */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 140px);
}

.login-card {
    margin: 40px auto;
    padding: 40px 30px 35px 30px;
    box-shadow: 0 0 25px 3px rgba(122, 52, 143, 0.8);
}

.login-icon {
    font-size: 48px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 8px #bf07c5);
}

.login-subtitle {
    font-size: 15px;
    color: #d1d5db;
    margin-top: 10px;
    margin-bottom: 25px;
}

.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.input-group {
    width: 100%;
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    background-color: #211c38;
    border: 2px solid #5a3d7a;
    border-radius: 10px;
    padding: 12px 45px 12px 16px;
    font-size: 16px;
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-wrapper input::placeholder {
    color: #7d7796;
}

.input-wrapper input:focus {
    border-color: #bf07c5;
    box-shadow: 0 0 12px rgba(191, 7, 197, 0.5);
}

.toggle-pwd-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.toggle-pwd-btn:hover {
    opacity: 1;
}

.login-btn {
    width: 100%;
    margin-top: 10px;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.error-badge {
    background-color: rgba(220, 38, 38, 0.2);
    border: 1px solid #ef4444;
    color: #fca5a5;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
    width: 100%;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.login-footer-info {
    margin-top: 25px;
    border-top: 1px solid rgba(122, 52, 143, 0.4);
    padding-top: 15px;
}

.session-notice {
    font-size: 12px;
    color: #a39eb8;
    line-height: 1.4;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-8px);
    }

    40%,
    80% {
        transform: translateX(8px);
    }
}

.shake {
    animation: shake 0.4s ease-in-out;
}