* {
    margin: 0;
    padding:0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    background: white;
    color: black;
    display: flex;
    justify-content: center;   /* horizontal center */
    align-items: center;       /* vertical center */
}


.container {
    width: 100%;
    max-width: 500px;
}


.form-box {
    width: 100%;
    max-width: 450px;
    padding: 30px;
    background: whitesmoke;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.form-box.active {
    display: block;
}

h2 {
    font-size: 34px;
    text-align: center;
    margin-bottom: 20px;
}

input,
select {
    width: 100%;
    padding: 12px;
    background: #eee;
    border-radius: 6px;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
}

button {
    width: 100%;
    padding: 12px;
    background: #74aeec;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 20px;
    transition: 0.5s;
}

button:hover {
    background: #6884d3;
}

p {
    font-size: 14.5px;
    text-align: center;
    margin-bottom: 10px;
}

p a {
    color: #7494ec;
    text-decoration: none;
}

p a:hover {
    text-decoration: underline;
}

.error-message {
    padding: 12px;
    background: #f8d7da;
    border-radius: 6px;
    font-size: 16px;
    color: #a42834;
    text-align: center;
    margin-bottom: 20px;
}

.success-message {
    padding: 12px;
    background: #d1e7dd;
    border-radius: 6px;
    font-size: 16px;
    color: #0f5132;
    text-align: center;
    margin-bottom: 20px;
}

.dashboard-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #2FA4D9;
    color: white !important;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.dashboard-btn:hover {
    background: #1b89b8;
}


.toggle-password:hover {
    color: #333;
}

.password-wrapper input {
    width: 100%;
    padding-right: 40px; /* space for the eye icon */
    margin-bottom: 0; /* Remove margin from input */
}

.toggle-password {
    cursor: pointer;
    user-select: none;
    position: absolute;
    right: 15px; 
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.password-wrapper {
    position: relative;
    margin-bottom: 20px; /* Move margin here */
}
