/* Basic reset and layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Adding text-shadow for a subtle glow, though not prominent in image */
    /* text-shadow: 0 0 5px rgba(255, 255, 255, 0.1); */
}

body {
    background-color: #0d0d0d; /* Slightly darker background for more contrast */
    color: #f0f0f0; /* Lighter text for overall readability */
    line-height: 1.6;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Common styling for container-like elements */
.container,
.form-container {
    max-width: 500px; /* Slightly narrower to match image more closely */
    width: 100%;
    margin: auto;
    background: #1a1a1a; /* Darker container background */
    padding: 35px; /* Slightly more padding */
    border-radius: 12px; /* Slightly more rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); /* More pronounced, darker shadow */
    position: relative; /* For potential future use, e.g., error messages */
}

h2 {
    text-align: center;
    margin-bottom: 30px; /* More space below heading */
    color: #ff3399; /* A slightly more intense pink, close to image */
    font-size: 2.2em; /* Slightly larger heading */
    letter-spacing: 1px; /* Subtle letter spacing */
}

label {
    display: block; /* Makes the label take its own line */
    margin-bottom: 5px; /* Adds space below the label */
    margin-top: 15px; /* Adds space above the label */
    font-size: 1.05em; /* Slightly larger font for labels */
    color: #e0e0e0; /* Match main text color */
}

/* Styling for input fields and textareas */
.input-box,
textarea {
    width: 100%;
    padding: 14px; /* More padding for a taller field */
    margin: 12px 0; /* More vertical spacing between fields */
    border: 1px solid #444; /* Darker, subtle border */
    border-radius: 8px; /* Slightly more rounded input corners */
    background-color: #2a2a2a; /* Lighter background for the input field itself */
    color: #ffffff; /* White text for data typed in */
    font-size: 1.1em; /* Slightly larger font size for input text */
    -webkit-appearance: none; /* For consistent styling across browsers */
    -moz-appearance: none;
    appearance: none;
}

/* Placeholder text color */
.input-box::placeholder,
textarea::placeholder {
    color: #aaa; /* Lighter gray for placeholder */
    opacity: 1; /* Ensure full opacity in Firefox */
}

/* Focus style for inputs */
.input-box:focus,
textarea:focus {
    border-color: #ff3399; /* Pink border on focus */
    outline: none; /* Remove default outline */
    box-shadow: 0 0 8px rgba(255, 51, 153, 0.6); /* Subtle glow on focus */
}

/* Styling for buttons */
button, input[type="submit"] {
    background-color: #ff3399; /* Vibrant pink */
    color: #ffffff; /* White text */
    border: none;
    padding: 15px 25px; /* More padding for a larger button */
    cursor: pointer;
    border-radius: 8px; /* Consistent rounded corners */
    font-size: 1.1em; /* Larger font size */
    width: 100%;
    margin-top: 25px; /* More spacing above the button */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth hover effect */
}

button:hover, input[type="submit"]:hover {
    background-color: #cc0066; /* Darker pink on hover */
    transform: translateY(-2px); /* Slight lift effect */
}

/* Styling for links */
a {
    color: #ff3399; /* Vibrant pink for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
    color: #ff66b2; /* Lighter pink on hover for links */
}

p {
    text-align: center;
    margin-top: 20px; /* More spacing below button/form */
    font-size: 0.95em;
    color: #ccc;
}

.success {
    color: #a8ff78; /* Brighter green */
    margin-top: 15px;
    text-align: center;
}

.error {
    color: #ff6347; /* Slightly softer red */
    margin-top: 15px;
    text-align: center;
}

/* --- Media Queries for Responsiveness --- */

/* For screens smaller than 768px (common tablet portrait and mobile) */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container,
    .form-container {
        padding: 25px;
        border-radius: 0; /* Remove rounded corners for full edge-to-edge look */
        box-shadow: none; /* Remove shadow on mobile */
    }

    h2 {
        font-size: 2em;
        margin-bottom: 25px;
    }

    .input-box,
    textarea {
        font-size: 1em;
        padding: 12px;
    }

    button, input[type="submit"] {
        font-size: 1em;
        padding: 12px 20px;
        margin-top: 20px;
    }

    p {
        font-size: 0.9em;
    }
}

/* For very small screens (e.g., mobile phones in portrait) */
@media (max-width: 480px) {
    body {
        padding: 0; /* No padding on body for edge-to-edge feel */
    }

    .container,
    .form-container {
        padding: 18px; /* More minimal padding */
        min-height: 100vh; /* Make the container take full height on tiny screens */
        display: flex; /* Use flexbox to center content within the container */
        flex-direction: column; /* Stack content vertically */
        justify-content: center; /* Center content vertically */
        align-items: center; /* Center content horizontally */
    }

    h2 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
}