.auth-wrapper {
    min-height: calc(100vh - 200px); /* adjust for header+footer */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: var(--light-color);
}

.auth-container {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.logo img {
    height: 40px;
    margin-right: 8px;
}

h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 2rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

label {
    text-align: left;
    font-weight: bold;
    color: var(--dark-color);
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    padding: 12px 14px;
    border: 1px solid var(--accent-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
    width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: var(--primary-color);
    outline: none;
}

button.btn {
    margin-top: 10px;
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    border-radius: 6px;
    padding: 12px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s, transform 0.3s;
}

button.btn:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    transform: translateY(-2px);
}

p {
    margin-top: 15px;
    font-size: 0.9rem;
}

p a {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: underline;
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    transition: opacity 0.3s ease;
}

.toggle-password.hide-password {
    opacity: 0;
}

#password-requirements {
    text-align: left;
    font-size: 1rem;
    color: #666;
    margin-top: 5px;
}

#password-strength {
    font-size: 1rem;
    text-align: left;
    margin-top: 5px;
}

.toast {
    visibility: hidden;
    min-width: 220px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 10px;
    padding: 10px 16px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 50px;
    transform: translateX(-50%);
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.4s ease, bottom 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
}

.toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 30px;
}

.password-strength-bar {
    display: flex;
    gap: 5px;
    margin: 10px 0;
    height: 8px;
}

#profile-password-requirements {
    text-align: left;
    font-size: 1rem;
    margin-top: 5px;
}

.strength-segment {
    flex: 1;
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    transition: background-color 0.4s ease;
}

.strength-segment.met:nth-child(1) {
    background-color: #ff4d4d; /* red */
}
.strength-segment.met:nth-child(2) {
    background-color: #ffc107; /* yellow */
}
.strength-segment.met:nth-child(3) {
    background-color: #28a745; /* green */
}

.strength-text {
    font-size: 1rem;
    margin-top: 5px;
    text-align: left;
}