* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.5;
    min-height: 100vh;
}

.auth-header {
    padding: 12px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-size: 16px;
    font-weight: 700;
    color: #2563eb;
}

.logo-sub {
    font-size: 14px;
    font-weight: 500;
    color: #666666;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-switch {
    display: flex;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 4px;
    position: relative;
}

.lang-switch .indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 60px;
    height: calc(100% - 8px);
    background: #2563eb;
    border-radius: 16px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.lang-btn {
    position: relative;
    z-index: 1;
    background: transparent;
    border: none;
    color: #666666;
    padding: 6px 14px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
    width: 60px;
    text-align: center;
}

.lang-btn.active {
    color: #ffffff;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 60px);
    padding: 40px 20px;
}

.auth-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 420px;
}

.auth-header-section {
    margin-bottom: 32px;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: #999999;
}

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

.form-label {
    display: block;
    font-size: 14px;
    color: #666666;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #1a1a1a;
    font-size: 15px;
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    outline: none;
    border-color: #2563eb;
}

.form-input::placeholder {
    color: #cccccc;
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #999999;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #2563eb;
}

.eye-icon {
    width: 20px;
    height: 20px;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    width: 100%;
    padding: 12px 16px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #1a1a1a;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-select-trigger:hover {
    border-color: #2563eb;
}

.custom-select-trigger.active {
    border-color: #2563eb;
}

.custom-select-arrow {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
}

.custom-select-trigger.active .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.custom-select-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-option {
    padding: 12px 16px;
    color: #1a1a1a;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.custom-select-option:hover {
    background-color: #f5f8ff;
}

.btn-primary {
    width: 100%;
    padding: 14px 24px;
    background-color: #2563eb;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:active {
    background-color: #1e40af;
    transform: translateY(0);
}

.btn-primary:disabled {
    background-color: #93c5fd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    width: 100%;
    padding: 14px 24px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #666666;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.btn-secondary:active {
    background-color: #f5f8ff;
}

.btn-small {
    padding: 10px 20px;
    font-size: 14px;
    width: auto;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-input.error {
    border-color: #ef4444;
}

.form-input.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 13px;
    margin-top: 8px;
    display: none;
}

.error-message.show {
    display: block;
}

.success-message {
    color: #10b981;
    font-size: 13px;
    margin-top: 8px;
    display: none;
}

.success-message.show {
    display: block;
}

.links {
    margin-top: 24px;
    text-align: center;
}

.link {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.link:hover {
    color: #1d4ed8;
}

.link-text {
    color: #666666;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 12px;
}

.link:last-child {
    margin-bottom: 0;
}

.highlight {
    color: #2563eb;
}

/* Toast 提示样式 - Vue风格 */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 90%;
    word-break: break-word;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.toast.success::before {
    content: '✓';
    font-size: 16px;
    font-weight: bold;
    color: #10b981;
}

.toast.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.toast.error::before {
    content: '✕';
    font-size: 16px;
    font-weight: bold;
    color: #ef4444;
}

.toast.info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.toast.info::before {
    content: 'ℹ';
    font-size: 16px;
    font-weight: bold;
    color: #3b82f6;
}

