body {
    background: linear-gradient(to right, #16032e, #6b20ce, #8546eb);
    font-family: 'Poppins', sans-serif;
}

#form {
    width: 300px;
    margin: 20vh auto 0 auto;
    padding: 20px;
    background-color: whitesmoke;
    border-radius: 4px;
    font-size: 12px;
}

#form h1 {
    color: #0f2027;
    text-align: center;
}

#form button {
    padding: 10px;
    margin-top: 10px;
    width: 100%;
    color: white;
    background-color: rgba(55, 2, 99, 0.705);
    border: none;
    border-radius: 4px;
}

.input-control {
    display: flex;
    flex-direction: column;
}

.input-control input {
    border: 2px solid #f0f0f0;
	border-radius: 4px;
	display: block;
	font-size: 12px;
	padding: 10px;
	width: 100%;
}

.input-control input:focus {
    outline: 0;
}

.input-control.success input {
    border-color: #09c372;
}

.input-control.error input {
    border-color: #ff3860;
}

.input-control .error {
    color: #ff3860;
    font-size: 9px;
    height: 13px;
}



/* Navbar */
.navbar-container {
    max-width: auto;  
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar {
    background-color: #ffffff;
    color: #333;
    padding: 0px 15px ;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid #ddd;
}

.logo {
    font-weight: 700;
    font-size: 20px;
}

#form {
    margin: 25vh auto 0 auto;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #555;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Dark mode styles */
body.dark-mode {
    background: linear-gradient(to right, #232526, #414345);
    color: white;
}

body.dark-mode .navbar {
    background-color: #1f1f1f;
    color: white;
    border-bottom: 1px solid #444;
}
body.dark-mode #form h1 {
    color: white;
}
body.dark-mode #form {
    background-color: #2b2b2b;
    color: white;
}

body.dark-mode .input-control input {
    background-color: #3a3a3a;
    color: white;
    border: 2px solid #555;
}

body.dark-mode .input-control input:focus {
    border-color: #888;
}

body.dark-mode #form button {
    background-color: #555;
}

body.dark-mode #form button:hover {
    background-color: #777;
}