/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* Reset some default browser styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #ffffff; /* White background */
    color: #333333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Container to center the form and message */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

/* Form styling */
.form {
    background-color: #ffffff;
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Combined selector for h2 elements within .form and .submission-message */
.form h2,
.submission-message h2 {
    margin-bottom: 30px;
    color: #222222;
    font-weight: 600;
    font-size: 24px;
    text-align: center;
}

/* Input group styling */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #555555;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    font-size: 14px;
}

.input-group input:focus {
    border-color: #007BFF;
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

/* Error message styling */
.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: none; /* Hidden by default */
}

/* Button styling */
.btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6C63FF 0%, #3C3B6E 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background: linear-gradient(135deg, #5a54e9 0%, #2a2a5e 100%);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2);
}

/* Links below the button */
.links {
    margin-top: 20px;
    text-align: center;
}

.links a {
    color: #6C63FF;
    text-decoration: none;
    margin: 0 5px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.links a:hover {
    color: #3C3B6E;
}

.links span {
    color: #cccccc;
}

/* Feedback messages */
.login-feedback,
.forgot-feedback,
.submission-message {
    margin-top: 20px;
    font-size: 14px;
    color: #333333;
    text-align: center;
}

/* Submission Message Styling */
.submission-message {
    background-color: #ffffff;
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0 10px 25px rgba(0, 0, 0, 0.1);
}

.submission-message p {
    color: #555555;
    margin-bottom: 30px;
    line-height: 1.6;
}

#back-button {
    background: #f0f0f0;
    color: #333333;
}

#back-button:hover {
    background: #e0e0e0;
}

/* Success and Error Messages */
.success-message {
    color: #28a745;
}

.error-message {
    color: #e74c3c;
}

/* Responsive design */
@media (max-width: 500px) {
    .form,
    .submission-message {
        padding: 30px 25px;
    }

    .form h2,
    .submission-message h2 {
        font-size: 20px;
    }

    .btn {
        font-size: 14px;
        padding: 12px;
    }
}
