/* General Body Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    /* Updated gradient to include cyan */
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 50%, #00e0ff 100%);
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
    background-size: 200% 200%; /* For dynamic background animation */
    animation: gradientShift 15s ease infinite; /* Animation for background */
}

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

/* Container for forms and main content */
.container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    text-align: center;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: 2em;
    position: relative;
    padding-bottom: 10px;
}

h1::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #6a11cb;
    border-radius: 5px;
}

/* Form Group Styling */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="date"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2575fc;
    box-shadow: 0 0 8px rgba(37, 117, 252, 0.3);
    outline: none;
}

/* Button Styling */
.btn {
    background: linear-gradient(45deg, #2575fc 0%, #6a11cb 100%);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-position 0.5s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background-size: 200% auto; /* For dynamic hover effect */
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background-position: right center; /* Shift gradient on hover */
    background: linear-gradient(45deg, #00e0ff 0%, #2575fc 50%, #6a11cb 100%); /* Cyan to Bluish to Purple on hover */
}

/* Messages */
.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 1em;
    color: #333;
    background-color: #e0f7fa; /* Light cyan */
    border: 1px solid #00bcd4;
}

.error-message {
    background-color: #ffebee; /* Light red */
    border: 1px solid #f44336;
    color: #f44336;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        margin: 20px;
        padding: 30px 20px;
    }

    h1 {
        font-size: 1.8em;
    }

    .btn {
        width: 100%;
        padding: 15px;
    }
}