.signuparea {
    width: 100%;
    height: auto;
    padding: 4rem;
    display: flex;
    justify-content: center;
    scrollbar-width: none;
}

.container {
    width: 45%;
    background: #fff;
    padding: 2rem;
    border-radius: 1.2rem;
    box-shadow: 0.5rem 0.5rem 1rem rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.signupheading {
    text-align: center;
    margin-bottom: 1.8rem;
    color: #0a0909e3;
    font-size: 1.8rem;
    letter-spacing: 0.1rem;
}

.input-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #030303;
    font-size: 1rem;
}

input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    outline: none;
    transition: 0.3s;
}

input:focus {
    border-color: #667eea;
}

.error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
}

.success {
    color: #27ae60;
    font-size: 12px;
    margin-top: 5px;
}

.password-strength {
    height: 6px;
    border-radius: 5px;
    margin-top: 8px;
    background: #eee;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: 0.4s;
}

.signupbtn {
    width: 27%;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: none;
    border-radius: 0.5rem;
    background: #667eea;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    justify-self: center;
}

.loginlink {
    font-size: 1.1rem;
    text-align: center;
    color: blue;
    cursor: pointer;
    margin-bottom: 2rem;
}

.signupbtn:hover {
    background: #5563d6;
}

.result {
    text-align: center;
    margin-top: 15px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .signuparea {
        padding: 5.5rem 0.5rem;
    }
    .container {
        width: 80%;
        padding: 1rem;
        border-radius: 0.6rem;
        box-shadow: 0.5rem 0.5rem 1rem rgba(0, 0, 0, 0.2);
    }
    .signupheading {
        margin-bottom: 1rem;
        font-size: 1.2rem;
        letter-spacing: 0.05rem;
    }
    .input-group {
        margin-bottom: 0.6rem;
    }
    input {
        padding: 0.5rem;
        border: 1.3px solid #ddd;
        border-radius: 0.3rem;
    }
    label {
        font-size: 0.7rem;
    }
    .signupbtn {
        width: 30%;
        margin-top: 1rem;
        margin-bottom: 1rem;
        padding: 0.3rem;
        border-radius: 0.3rem;
        font-size: 0.7rem;
    }
    .loginlink {
        font-size: 0.8rem;
    }
}