/* Global Reset and Font */
* {
    margin: 0;
    padding: 0;
    /* Changed 'Poppins' font reference to be safer */
    font-family: 'Poppins', Arial, sans-serif;
    box-sizing: border-box;
}

body {
    /* Set min-height to 100vh to ensure the background covers the entire viewport */
    min-height: 100vh;
    display: flex; /* Use flexbox to center the form vertically and horizontally */
    justify-content: center;
    align-items: center;
    background-color: #A57Dff; /* Your chosen purple background */
    padding: 20px; /* Add padding for mobile screens */
}

/* Form Container Styling */
.form-box {
    width: 100%; /* Default to full width on mobile */
    max-width: 400px; /* Limit the max size of the form */
    background: #fff;
    padding: 40px;
    text-align: center;
    margin-top: 0; /* Centered by flex on the body, so no top margin needed */
    border-radius: 15px;
    border: none;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

/* Heading (H1) Styles */
.form-box h1 {
    font-size: 30px;
    margin-bottom: 60px;
    color: #3c00a0;
    position: relative;
}

/* Underline decoration for H1 */
.form-box h1::after {
    content: '';
    width: 30px;
    height: 4px;
    border-radius: 3px;
    background: #3c00a0;
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
}

/* Input Group Layout */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Added gap for cleaner spacing between fields */
}

/* Individual Input Field Container */
.input-field {
    background: #eaeaea;
    margin: 10px 0; /* Reduced vertical margin slightly for cleaner look */
    border-radius: 5px; /* Slightly rounded corners for fields */
    display: flex;
    align-items: center;
    transition: background 0.3s; /* Smooth transition on hover/focus */
}

.input-field:focus-within {
    background: #e0e0e0;
    box-shadow: 0 0 0 2px #3c00a0;
}

/* Input Element (text, email, password) */
input {
    flex-grow: 1; /* Allows input to take up maximum available width */
    background: transparent;
    border: 0;
    outline: none; /* Remove default browser outline */
    padding: 18px 15px;
}

/* Icon Styling */
.input-field i {
    margin-left: 15px;
    color: #999;
}

/* Button Field Layout */
.btn-field {
    margin-top: 40px;
    width: 100%;
}

/* Button Styling (Create Account) */
.btn-field button {
    background: #3c00a0;
    color: white;
    height: 50px; /* Slightly increased height for better touch target */
    border-radius: 25px; /* Increased border radius for full pill shape */
    border: 0;
    outline: 0;
    cursor: pointer;
    width: 100%;
    font-size: 18px; /* Adjusted font size for better readability */
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    transition: background 0.3s, transform 0.1s;
}

.btn-field button:hover {
    background: #5a00d9;
}

.btn-field button:active {
    transform: scale(0.99);
}

/* Login Link Styling */
.login-link {
    font-size: 16px;
    color: #555;
    margin-top: 15px;
}

.login-link a {
    color: #3c00a0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.login-link a:hover {
    text-decoration: underline;
    color: #5a00d9;
}

/* Responsive Design */
@media screen and (max-width: 600px) {
    .form-box {
        width: 90%; /* Wider form for smaller screens */
        padding: 30px 20px;
    }
}