/* General styles for the body and gradient animation */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #00ff00, black);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Container styling for center alignment */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Login box styling */
.login-box {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 20px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    transform: perspective(600px) rotateX(0deg);
    transition: transform 0.3s ease-in-out;
}

.login-box:hover {
    transform: perspective(600px) rotateX(10deg);
}

h1 {
    color: #fff;
    margin-bottom: 20px;
}

h2 {
    color: #ddd;
    margin-bottom: 15px;
}

.input-group {
    margin-bottom: 15px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #ddd;
}

input {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #666;
    border-radius: 5px;
    margin-bottom: 10px;
    background-color: #333;
    color: #fff;
}

button {
    background-color: #00ff00;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #00cc00;
}

a {
    color: #00ff00;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

#message {
    margin-top: 20px;
}

/* Styles for the dashboard */
.dashboard-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(135deg, #00ff00, black);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 20px;
}

.navbar h1 {
    margin: 0;
    font-size: 1.5em;
}

.navbar button {
    background-color: #ff0000;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.navbar button:hover {
    background-color: #cc0000;
}

.main-content {
    flex: 1;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    margin: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.welcome {
    margin-bottom: 20px;
}

.widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.widget {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 15px;
    flex: 1 1 30%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.widget h3 {
    margin-top: 0;
}

.footer {
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    padding: 10px;
}
