@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

:root {
    --primary: #194292;
    --primary-light: #2a5fb8;
    --primary-dark: #0f2d6b;
    --primary-bg: rgba(25, 66, 146, 0.06);
    --accent: #3d6fd9;
    --accent-light: #5b8def;
    --text-primary: #1a1a2e;
    --text-secondary: #6b7c93;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --border-focus: var(--primary);
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
    background: #f0f4fa;
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 400px;
    background: linear-gradient(135deg, #0f2d6b 0%, #194292 50%, #2a5fb8 100%);
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 400px;
    background: 
        radial-gradient(circle at 15% 50%, rgba(61,111,217,0.4) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(91,141,239,0.3) 0%, transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(25,66,146,0.5) 0%, transparent 60%);
    z-index: 0;
}

.shape {
    position: fixed;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.shape-1 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
    top: 50px; left: -50px;
    animation: drift 25s ease-in-out infinite;
}

.shape-2 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(91,141,239,0.3), transparent 70%);
    top: 100px; right: 10%;
    animation: drift 30s ease-in-out infinite reverse;
}

.shape-3 {
    width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(61,111,217,0.25), transparent 70%);
    bottom: 200px; left: 10%;
    animation: drift 20s ease-in-out infinite;
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.inner {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mheader {
    width: 100%;
    padding: 20px 0;
    position: relative;
    z-index: 20;
}

.mhead {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mhead .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mhead .logo img,
.mhead .logo a {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.mhead .tit {
    display: flex;
    align-items: center;
    gap: 25px;
}

.mhead .tit a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.mhead .tit a:hover {
    color: #fff;
}

.clearfix { display: none; }

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

.auth-card {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(15, 45, 107, 0.25), 0 0 0 1px rgba(255,255,255,0.5);
    overflow: hidden;
    animation: cardIn 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.register-card {
    max-width: 560px;
}

.auth-card-header {
    padding: 40px 40px 0;
    text-align: center;
    position: relative;
}

.auth-icon-wrap {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(25, 66, 146, 0.4);
    animation: iconIn 0.8s 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes iconIn {
    from { opacity: 0; transform: scale(0) rotate(-180deg); }
    to { opacity: 1; transform: scale(1) rotate(0); }
}

.auth-icon-wrap i {
    font-size: 32px;
    color: #fff;
}

.auth-card-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.auth-card-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

.auth-card-subtitle a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.auth-card-subtitle a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.auth-card-body {
    padding: 35px 40px 40px;
}

.formlogin {
    width: 100%;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

.formlogin tr {
    display: block !important;
    width: 100%;
    margin-bottom: 0;
    border: none !important;
    background: none !important;
}

.formlogin td {
    padding: 0 !important;
    border: none !important;
    background: none !important;
    font-size: 14px;
    display: block;
    width: 100% !important;
}

.formlogin .tdright {
    display: block !important;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    width: 100% !important;
    height: auto !important;
    text-align: left !important;
    float: none !important;
    line-height: 1.4;
}

.formlogin .tdright:empty {
    display: none !important;
    margin-bottom: 0;
    height: 0 !important;
}

.field-row {
    margin-bottom: 22px;
}

.field-row td {
    display: block;
}

.field-input {
    position: relative;
}

.field-input .input,
.field-input .input.input-large,
.field-input .input.input-small {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 46px;
    font-size: 15px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: #f8fafc;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-sizing: border-box;
    line-height: 44px;
    float: none;
}

.field-input .input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(25, 66, 146, 0.1);
}

.field-input .input::placeholder {
    color: var(--text-light);
}

.field-input .icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 16px;
    pointer-events: none;
    transition: color 0.3s;
}

.field-input .input:focus ~ .icon {
    color: var(--primary);
}

.captcha-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-row .field-input {
    flex: 1;
}

.captcha-row .authcode {
    width: 120px;
    height: 48px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.captcha-row .authcode:hover {
    border-color: var(--primary);
}

.captcha-row .input-small {
    width: 100% !important;
}

.remember-row {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    width: 100% !important;
    padding: 0 !important;
}

.remember-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    user-select: none;
}

.remember-row .checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.remember-row a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.remember-row a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    height: 52px;
    padding: 0 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(25, 66, 146, 0.35);
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(25, 66, 146, 0.45);
}

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

.divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0 20px;
    color: var(--text-light);
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.social-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.social-row a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: #f8fafc;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    overflow: hidden;
}

.social-row a:hover {
    background: var(--primary-bg);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(25, 66, 146, 0.2);
}

.social-row a img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.forreg {
    text-align: center;
    margin-top: 25px;
}

.forreg a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
}

.forreg a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.forreg a.godl {
    color: var(--primary);
}

.auth-footer {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    position: relative;
    z-index: 10;
}

.auth-footer a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.3s;
}

.auth-footer a:hover {
    color: #fff;
}

.bottom-text {
    text-align: center;
    margin: 20px 0;
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    position: relative;
    z-index: 10;
}

.bottom-text a {
    color: #64b5f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.bottom-text a:hover {
    color: #fff;
    text-decoration: underline;
}

.clear {
    display: none !important;
}

.font12 {
    font-size: 14px !important;
    color: var(--text-secondary);
}

.qqlogin {
    display: none;
}

.qqlogin .tdright {
    display: none !important;
}

.register-cards {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.register-cards .register-card {
    flex: 1;
    max-width: none;
    background: #f8fafc;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    display: block;
}

.register-cards .register-card:hover {
    background: var(--primary-bg);
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(25, 66, 146, 0.18);
}

.register-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(25, 66, 146, 0.35);
    transition: all 0.35s ease;
}

.register-cards .register-card:hover .register-card-icon {
    transform: scale(1.08) rotate(-3deg);
}

.register-card-icon i {
    font-size: 28px;
    color: #fff;
}

.register-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.register-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 30px;
    padding: 0 10px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.35s ease;
}

.step-item.active .step-circle,
.step-item:first-child .step-circle {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(25, 66, 146, 0.35);
}

.step-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

.step-item.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.step-connector {
    width: 50px;
    height: 2px;
    background: #e2e8f0;
    margin: 0 8px;
    margin-bottom: 28px;
}

.section-title {
    display: flex;
    align-items: center;
    margin: 30px 0 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.section-title a {
    display: inline-block;
    padding: 8px 0;
    border-bottom: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
}

.pw_check {
    width: 100%;
    display: flex;
    gap: 6px;
    margin: 8px 0 4px;
    height: auto;
    background: none;
}

.pw_check span {
    flex: 1;
    width: auto;
    height: 6px;
    line-height: 6px;
    margin: 0;
    text-align: center;
    display: block;
    float: none;
    border-radius: 3px;
    background: #e2e8f0;
    font-size: 11px;
    color: var(--text-light);
    transition: all 0.3s;
}

.pw_check span strong {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 6px;
    border-radius: 3px;
}

.pw_check span.c_orange,
.pw_check span strong.c_orange {
    background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%);
    color: #fff;
    font-weight: 700;
}

.sms-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sms-row .field-input {
    flex: 1;
}

.sms-btn {
    height: 48px;
    padding: 0 18px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.sms-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 66, 146, 0.3);
}

.qfont {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.5;
}

.catid select,
.catid option {
    font-size: 15px;
}

.agreement {
    margin-top: 30px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.agreement-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.agreement-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-height: 160px;
    overflow-y: auto;
}

.agreement-content p {
    margin: 0 0 8px;
}

.agreement-row {
    margin: 15px 0;
}

.agreement-cell {
    text-align: left !important;
    padding: 0 !important;
}

.agreement-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    user-select: none;
}

.agreement-label .agreement-radio {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.agreement-checkbox {
    display: none;
}

.agreement-text {
    font-size: 14px;
}

.agreement-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin: 0 4px;
}

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

.register-card .formlogin,
.register-card form .formlogin {
    margin-top: 0;
}

.register-card textarea.input {
    width: 100%;
    min-height: 90px;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: #f8fafc;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.6;
}

.register-card textarea.input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(25, 66, 146, 0.1);
}

.register-card select.input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 15px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: #f8fafc;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 44px;
}

.register-card select.input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(25, 66, 146, 0.1);
}

@media (max-width: 600px) {
    .body {
        padding: 20px 15px 40px;
    }
    
    .auth-card {
        border-radius: 20px;
    }
    
    .auth-card-header {
        padding: 30px 25px 0;
    }
    
    .auth-card-body {
        padding: 25px;
    }
    
    .auth-card-title {
        font-size: 24px;
    }
    
    .mhead {
        padding: 0 15px;
    }
    
    .mhead .logo a,
    .mhead .logo img {
        font-size: 18px;
    }
    
    .register-cards {
        flex-direction: column;
        gap: 15px;
    }
    
    .register-cards .register-card {
        padding: 28px 20px;
    }
    
    .step-connector {
        width: 25px;
    }
    
    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .step-label {
        font-size: 12px;
    }
    
    .sms-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .sms-btn {
        width: 100%;
    }
}