/* ===== Auth Pages ===== */
.auth-wrap {
    max-width: 420px;
    margin: 20px auto;
    padding: 0 16px;
}
.auth-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 24px 20px;
}
.auth-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}
.auth-form { }
.auth-field {
    margin-bottom: 16px;
}
.auth-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #555;
}
.auth-field input {
    width: 100%;
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 14px;
    transition: border-color 0.2s;
}
.auth-field input:focus {
    border-color: var(--primary);
    outline: none;
}
.auth-question-text {
    font-size: 14px;
    color: #333;
    padding: 10px 14px;
    background: #f7f7f7;
    border-radius: 8px;
    line-height: 1.5;
}
.auth-links {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 13px;
}
.auth-links a {
    color: var(--primary);
    transition: opacity 0.2s;
}
.auth-links a:hover { opacity: 0.8; }
.auth-btn {
    width: 100%;
    height: 44px;
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: 22px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(110,69,226,0.3);
    transition: opacity 0.2s;
}
.auth-btn:hover { opacity: 0.9; }

/* ===== Auth Modal ===== */
.auth-modal-mask {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.auth-modal {
    background: #fff;
    width: 100%;
    max-width: 380px;
    border-radius: 12px;
    overflow: hidden;
}
.auth-modal-header {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
}
.auth-modal-title {
    font-size: 17px;
    font-weight: 600;
}
.auth-modal-body {
    padding: 20px 16px;
}
.auth-modal-text {
    font-size: 15px;
    text-align: center;
    line-height: 1.6;
    color: #555;
}
.auth-modal-footer {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.auth-modal-btn {
    width: 100%;
    height: 42px;
    border: none;
    border-radius: 21px;
    font-size: 15px;
    cursor: pointer;
    background: #f5f5f5;
    color: #666;
    transition: opacity 0.2s;
}
.auth-modal-btn:hover { opacity: 0.85; }
.auth-modal-btn.primary {
    background: var(--gradient);
    color: #fff;
    font-weight: 600;
}

/* ===== Toast ===== */
.auth-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 2000;
    max-width: 80%;
    text-align: center;
}

/* Language Switch Bar (login/register/forgot) */
.lang-switch-bar {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 100;
}
.lang-switch {
    height: 32px;
    padding: 0 10px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 16px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23fff' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 24px;
}
.lang-switch option {
    color: #333;
    background: #fff;
}

