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

.auth-wrapper {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.auth-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.auth-bg-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
}

.auth-card {
    position: relative;
    z-index: 10;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 440px;
}

.auth-header {
    padding: 35px 30px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.auth-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

.auth-header.auth-blue {
    background: linear-gradient(135deg, #0066cc 0%, #0088ee 100%);
}

.auth-header.auth-green {
    background: linear-gradient(135deg, #009966 0%, #00cc88 100%);
}

.auth-icon {
    font-size: 48px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.auth-header h1 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.auth-header p {
    font-size: 14px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.auth-body {
    padding: 30px;
}

.auth-tabs {
    display: flex;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 25px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: #fff;
    color: #007bff;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.auth-alerts {
    margin-bottom: 20px;
}

.auth-alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
}

.auth-alert:last-child {
    margin-bottom: 0;
}

.auth-alert-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.auth-alert-danger p {
    margin: 5px 0;
}

.auth-alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.auth-input {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.auth-input.auth-blue {
    border: 1px solid #e5e7eb;
}

.auth-input.auth-green {
    border: 1px solid #d1fae5;
}

.auth-input:focus-within {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.auth-input .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #9ca3af;
}

.auth-input input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border: none;
    outline: none;
    font-size: 14px;
    background: #fff;
    color: #333;
}

.auth-input input::placeholder {
    color: #9ca3af;
}

.sms-group {
    display: flex;
    gap: 10px;
}

.sms-group .auth-input {
    flex: 1;
}

.sms-btn {
    padding: 0 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sms-btn.sms-blue {
    background: linear-gradient(135deg, #0066cc, #0088ee);
    color: #fff;
}

.sms-btn.sms-green {
    background: linear-gradient(135deg, #009966, #00cc88);
    color: #fff;
}

.sms-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sms-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sms-hint {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 8px;
}

.pw-strength {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.pw-strength-bar {
    height: 100%;
    border-radius: 2px;
    transition: all 0.3s ease;
    width: 0;
}

.pw-strength-bar.weak {
    width: 33%;
    background: #ef4444;
}

.pw-strength-bar.medium {
    width: 66%;
    background: #f59e0b;
}

.pw-strength-bar.strong {
    width: 100%;
    background: #10b981;
}

.pw-strength-text {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

.agreement {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    margin-bottom: 20px;
}

.agreement a {
    color: #007bff;
    text-decoration: none;
}

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

.auth-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-submit.auth-blue {
    background: linear-gradient(135deg, #0066cc, #0088ee);
}

.auth-submit.auth-green {
    background: linear-gradient(135deg, #009966, #00cc88);
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.auth-footer p {
    font-size: 14px;
    color: #6b7280;
}

.auth-link-blue {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.auth-link-green {
    color: #059669;
    text-decoration: none;
    font-weight: 500;
}

.auth-link-blue:hover,
.auth-link-green:hover {
    text-decoration: underline;
}

.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
}

@media (max-width: 500px) {
    .auth-card {
        margin: 20px;
        border-radius: 12px;
    }
    
    .auth-header {
        padding: 25px 20px;
    }
    
    .auth-body {
        padding: 20px;
    }
}