* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f7f6;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
}

h2 {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
}

h2.logged-out-message {
    font-size: 1.5rem;
}

.container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

label {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="password"] {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #647216;
    outline: none;
}

button {
    padding: 0.8rem;
    background-color: #647216;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

button:hover {
    background-color: #56620e;
}

button.block {
    width: 100%;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;

    button {
        margin-top: 0;
    }
}

p {
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
}

p.error {
    color: #d9534f;
}

p.success {
    color: #333;
}

.warning {
    color: #d9534f;
    font-weight: bold;
}

.flag-selector {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 0.5rem;
}

.flag-selector img {
    height: 16px;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.6);
}

.flag-selector img:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.7);
}

.delete-button {
    padding: 0.8rem;
    background-color: #d9534f;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
    margin-top: 1rem;
    opacity: 0.5;
    pointer-events: none;
}

.delete-button:hover {
    background-color: #c9302c;
}

.code-input {
    margin-top: 1rem;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.3s;
}

.code-input:focus {
    border-color: #647216;
    outline: none;
}

@media (max-width: 600px) {
    .container {
        padding: 1.5rem;
    }
}
