body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
   background: linear-gradient(135deg, #3c31dd, #00aaff); /* Purple to Blue gradient */
  color: #fff;
  text-align: center;
  height: 100vh;
}

/* Form container */
.form-container {
    width: 250px;
    background-color: white;
    padding: 20px;
    border: 2px solid black;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-family: "Roboto", sans-serif;
}

/* Form group styling */
.form-group {
    margin-bottom: 15px;
}

/* Input fields */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 8px;
    border: 1px solid black;
    border-radius: 5px;
    margin-top: 5px;
    box-sizing: border-box;
}

/* Button styling */
button {
    width: 100%;
    padding: 10px;
    background-color: gray;
    color: white;
    border: 2px solid darkgray;
    border-radius: 5px;
    cursor: not-allowed;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* When the button is enabled */
button:enabled {
    background-color: green;
    border-color: darkgreen;
    cursor: pointer;
}

/* Button hover effect when enabled */
button:enabled:hover {
    background-color: darkgreen;
}

/* Password strength meter */
.strength-meter {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin: 10px 0;
}

.strength-meter {
            width: 100%;
            height: 10px;
            background-color: #e0e0e0;
            border-radius: 5px;
            margin-top: 10px;
        }
 .strength-bar {
            height: 100%;
            width: 0%;
            background-color: red;
            border-radius: 5px;
            transition: width 0.3s;
        }
 .strength-text {
            font-weight: bold;
            margin-top: 5px;
            color: red;
        }
.invalid { color: red; }
.valid { color: green; }
.error-message, .success-message {
            color: red;
            background-color: yellow;
            font-weight: bold;
            padding: 10px;
            margin-bottom: 15px;
            display: none; /* Initially hidden */
        }

 .success-message {
            color: green;
        }
