/* auth.css - Styles for authentication forms (login/register) */
.auth-wrapper {
    position: relative;
    max-width: 550px;
    margin: 220px auto 0;
}

.auth-logo {
    position: absolute;
    top: -90px;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 900;
}

.auth-logo img {
    max-width: 200px;
    width: 100%;
    height: auto;
    display: inline-block;
    padding-bottom: 40px;
}

.auth-box {
    background: white;
    border-radius: 10px;
    padding: 20px 40px 40px;
    z-index: 850;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 550px;
    margin: 0 auto;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.error {
    color: #e53e3e;
    margin-top: 10px;
}

.success {
    color: #38a169;
    margin-top: 10px;
}

.text-center {
    text-align: center;
}

.btn.btn-primary {
    background-color: #667eea;
    color: white;
    border: none;
    min-width: 160px;
    height: 52px;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 15px 30px;
    border-radius: 16px;
    margin-top: 0;
}

.btn.btn-primary:hover {
    background-color: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* --- Form Styles --- */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

input,
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

input:focus,
select:focus {
    outline: none;
    border-color: #667eea;
}

small {
    color: #888;
    font-size: 12px;
}

/* --- Password Wrapper & Toggle --- */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 40px;
    /* Space for the eye icon */
}

.password-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #667eea;
}

.password-toggle:focus {
    outline: none;
}

/* --- Password Strength Meter --- */
.password-strength {
    margin-top: 8px;
    margin-bottom: 4px;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background-color: #e1e8ed;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill {
    height: 100%;
    width: 0;
    background-color: #e53e3e;
    /* Default Red */
    transition: width 0.3s ease, background-color 0.3s ease;
}

/* --- Text & Link Styles --- */
.text-center {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.text-center a {
    color: #667eea;
    text-decoration: none;
}

/* --- Terms & Checkbox Styles --- */
.terms-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-left: 15px;
    /* Align with input text padding */
}

.terms-wrapper input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    flex-shrink: 0;
    cursor: pointer;
}

.terms-wrapper label {
    margin-bottom: 0;
    cursor: pointer;
}

.text-center a:hover {
    text-decoration: underline;
}