/* =========================
   GENERAL STYLES
========================= */
body {
    font-family: Verdana, sans-serif;
    background: url('images/background.webp') no-repeat center center fixed;
    background-size: cover;
    font-size: 14px;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: #fff;
    padding: 30px 25px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    width: 400px;
    max-width: 95%;
    box-sizing: border-box;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

form {
    display: flex;
    flex-direction: column;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: #007bff;
}

button {
    padding: 10px 15px;
    border: none;
    background-color: #007bff;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0056b3;
}

p, a {
    font-size: 13px;
    text-align: center;
    margin-top: 10px;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.message {
    text-align: center;
    margin-bottom: 15px;
    color: #ff4c4c;
}

/* =========================
   ADMIN PANEL STYLING
========================= */
.admin-container {
    width: 90%;
    max-width: 1000px;
    margin: 20px auto;
    background: #fff;
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.admin-container h2 {
    text-align: left;
    margin-bottom: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th, td {
    padding: 8px 10px;
    border: 1px solid #ccc;
    text-align: left;
}

th {
    background-color: #007bff;
    color: #fff;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

.admin-container button {
    font-size: 12px;
    padding: 6px 10px;
}

.admin-container input[type="checkbox"] {
    transform: scale(1.2);
    margin: 0;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 600px) {
    .container {
        padding: 20px 15px;
    }

    input[type="text"],
    input[type="password"],
    input[type="email"] {
        font-size: 13px;
        padding: 10px;
    }

    button {
        font-size: 13px;
        padding: 10px;
    }

    table, th, td {
        font-size: 12px;
    }

    .admin-container {
        padding: 15px;
    }
}

/* ===== SHAKE ANIMATION ON ERROR ===== */
@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.5s;
  border-color: #ff4c4c !important; /* optional: highlight inputs in red */
}
