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

/* Container and Body Styling */
body {
    /* Use the same background color as the Sign Up page for consistency */
    background-color: #A57Dff; 
    
    /* Use flex to perfectly center the form on the screen */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px; /* Padding for small screens */
}

/* Form Box Styling */
.form-box {
    width: 90%;
    max-width: 450px;
    /* Removed absolute positioning for better centering with body flex */
    /* position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); */
    
    background: #fff;
    padding: 100px 60px 120px;
    text-align: center;
    border-radius: 15px;
    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 Field Container */
.input-field {
    background: #eaeaea;
    margin: 15px 0;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

/* Input Element (email, password) */
input {
    width: 100%;
    background: transparent;
    border: 0;
    outline: 0;
    padding: 18px 15px;
}

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

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

/* Button Styling (Login Button) */
.btn-field button {
    background: #3c00a0;
    color: white;
    height: 50px; /* Increased height for better consistency and touch target */
    border-radius: 25px; /* Pill shape */
    border: 0;
    outline: 0;
    cursor: pointer;
    width: 100%;
    font-size: 18px; /* Adjusted font size */
    font-weight: 600;
    margin-bottom: 18px;
    transition: background 0.3s;
}

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

/* Link to Create Account */
.create-link {
    font-size: 16px;
    color: #555;
    margin-top: 20px;
}

.create-link a {
    color: #3c00a0;
    text-decoration: none;
    font-weight: 600;
}

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

/* Responsive Design */
@media screen and (max-width: 500px) {
    .form-box {
        padding: 50px 30px 80px; /* Reduced padding on small screens */
    }
}