body {
    font-family: 'Roboto', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.background-grid {
    position: absolute;
    inset: 0;
    z-index: -10;
    height: 100%;
    width: 100%;
    background-color: white;
    background-image: 
        linear-gradient(to right, #f0f0f0 1px, transparent 1px),
        linear-gradient(to bottom, #f0f0f0 1px, transparent 1px);
    background-size: 6rem 4rem;
}

.container {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    text-align: center;
    transition: transform 0.3s;
    position: relative;
    z-index: 1;
}

.container:hover {
    transform: scale(1.05);
}

h2 {
    color: #333;
    margin-bottom: 1rem;
    font-weight: 700;
}

p {
    color: #555;
    margin-top: 1rem;
}

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

a:hover {
    color: #b38f00;
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #b38f00, #b38f00);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.button:hover {
    background: linear-gradient(135deg, #0056b3, #003d80);
    transform: translateY(-2px);
}

input {
    margin-bottom: 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box; /* Ensure padding doesn't affect width */
    font-size: 16px; /* Ensure consistent font size */

}

input::placeholder {
    color: #999;
}

input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

.success {
    color: green;
}

.error {
    color: red;
}

@media (max-width: 768px) {
    .input-group label {
        font-size: 0.85rem;
    }
    
    input {
        padding: 0.6rem;
    }
}

@media (max-width: 480px) {
    .input-group label {
        font-size: 0.8rem;
    }
    
    input {
        padding: 0.5rem;
    }
}

.input-group {
    text-align: left;
    position: relative;
    margin-bottom: 20px; /* Increase margin to accommodate error messages */
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

input.error {
    border-color: #ff3860; /* Red border for error */

}

.error-message {
    color: #ff3860; /* Red color for error */
    font-size: 0.9em;
    position: absolute; /* Absolute positioning */
    bottom: -35px; /* Position it below the input field */
    left: 0;
    width: 100%; /* Ensure it spans the full width */
}



/* Instructions styling */
.instructions {
    font-size: 0.85rem;
    color: #555;
    margin-top: 5px;
}

/* Success icon */
.success-icon {
    color: green;
    font-size: 1.2rem;
    position: absolute;
    right: 10px;
    top: 50% ;
    transform: translateY(-50%); 
}