/* Базові стилі для сторінки входу */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-image: url('../mainbg.jpg'); /* Або інший шлях до фонового зображення */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.box {
    position: relative;
}

#app {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8); /* Легкий прозорий фон для контенту */
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Ensure the login form and character container have proper stacking context */
#login-form, #character-container {
    position: relative;
    display: inline-block;
    min-width: 300px;
    max-width: 400px;
    overflow: visible;
}

.login-backdrop,
.character-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    border-radius: 8px;
}

/* Ensure form and its contents appear above the backdrop */
#auth-form, #auth-form table, #auth-form input, #auth-form span, #auth-form td {
    position: relative;
    z-index: 2;
}

/* Also apply to character table */
#character-table, #character-table * {
    position: relative;
    z-index: 2;
}

.font-white {
    color: white !important;
}

.font-red {
    color: red !important;
}