body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    color: #333;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-color: #ffffff;
}

.form-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 1rem;
    margin: 15px 0 5px;
    text-align: left;
    color: #555;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #007BFF;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
    outline: none;
}

.password-container {
    position: relative;
}

.eye-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    transition: color 0.3s ease;
}

.eye-icon:hover {
    color: #007BFF;
}

.privacy-agreement {
    font-size: 0.9rem;
    color: #777;
    margin: 15px 0;
}

.privacy-agreement a {
    color: #007BFF;
    text-decoration: none;
    font-weight: 500;
}

.privacy-agreement a:hover {
    text-decoration: underline;
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background-color: #007BFF;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

button[type="submit"]:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

button[type="submit"]:active {
    background-color: #004085;
    transform: translateY(0);
}

body.dark-mode {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

body.dark-mode .form-container {
    background-color: #2c2c2c;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

body.dark-mode label {
    color: #ccc;
}

body.dark-mode .main {
    background-color: #000000;
    color: #e0e0e0;
}

body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode input[type="password"] {
    background-color: #333;
    border: 1px solid #555;
    color: #e0e0e0;
}

body.dark-mode input[type="text"]:focus,
body.dark-mode input[type="email"]:focus,
body.dark-mode input[type="password"]:focus {
    border-color: #66b2ff;
    box-shadow: 0 0 8px rgba(102, 178, 255, 0.5);
}

body.dark-mode .eye-icon {
    color: #bbb;
}

body.dark-mode .eye-icon:hover {
    color: #66b2ff;
}

body.dark-mode .privacy-agreement {
    color: #aaa;
}

body.dark-mode .privacy-agreement a {
    color: #66b2ff;
}

body.dark-mode button[type="submit"] {
    background-color: #66b2ff;
    box-shadow: 0 5px 15px rgba(102, 178, 255, 0.3);
}

body.dark-mode button[type="submit"]:hover {
    background-color: #338fcc;
}

body.dark-mode button[type="submit"]:active {
    background-color: #1a6a99;
}