/* ============================================
   船鑫服务商平台 - 登录页 V2
   参考普渡服务商平台设计风格
   ============================================ */

/* 背景层 */
body.login-bg {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.75) 50%, rgba(15, 23, 42, 0.85) 100%),
        radial-gradient(ellipse at top left, rgba(26, 109, 245, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

/* 装饰性科技背景元素 */
body.login-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

body.login-bg::after {
    content: '';
    position: fixed;
    top: 10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26, 109, 245, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* 顶部品牌栏 */
.brand-bar {
    position: relative;
    z-index: 10;
    padding: 20px 40px;
}

.brand-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #1A6DF5 0%, #0D47A1 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(26, 109, 245, 0.4);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    color: white;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.brand-sub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-top: 2px;
}

/* 登录舞台 */
.login-stage {
    position: relative;
    z-index: 5;
    min-height: calc(100vh - 84px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* 登录卡片 V2 */
.login-card-v2 {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

/* 登录提示 */
.login-hint-v2 {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: -4px 0 20px;
    font-size: 12px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.login-hint-v2 span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 6px;
    text-align: center;
}

.login-subtitle {
    font-size: 14px;
    color: #6B7280;
    text-align: center;
    margin: 0 0 32px;
}

/* 输入框包装器 V2 */
.input-wrap {
    position: relative;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.input-icon-left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.form-input-v2 {
    width: 100%;
    height: 48px;
    padding: 0 48px 0 44px;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: #1F2937;
    background: white;
    transition: all 0.2s;
    outline: none;
    box-sizing: border-box;
}

.form-input-v2:focus {
    border-color: #1A6DF5;
    box-shadow: 0 0 0 3px rgba(26, 109, 245, 0.1);
}

.form-input-v2::placeholder {
    color: #9CA3AF;
}

.form-input-v2:focus + .input-action-v2,
.input-wrap:focus-within .input-icon-left {
    color: #1A6DF5;
}

/* 输入框右侧操作按钮 V2 */
.input-action-v2 {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    color: #9CA3AF;
    padding: 0;
    font-family: inherit;
}

.input-action-v2:hover {
    background: #F3F4F6;
    color: #1A6DF5;
}

.input-action-v2:focus {
    outline: none;
}

/* 隐私政策勾选 V2 */
.privacy-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 24px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    color: #6B7280;
    line-height: 1.4;
}

.privacy-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-box {
    width: 16px;
    height: 16px;
    border: 1.5px solid #D1D5DB;
    border-radius: 4px;
    background: white;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s;
}

.privacy-check input[type="checkbox"]:checked + .checkbox-box {
    background: #1A6DF5;
    border-color: #1A6DF5;
}

.privacy-check input[type="checkbox"]:checked + .checkbox-box::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.privacy-text {
    flex: 1;
}

.privacy-text a {
    color: #1A6DF5;
    text-decoration: none;
    font-weight: 500;
}

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

/* 按钮 V2 */
.btn-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
}

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

.btn-primary-v2 {
    background: linear-gradient(135deg, #1A6DF5 0%, #0D47A1 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(26, 109, 245, 0.35);
}

.btn-primary-v2:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 109, 245, 0.5);
}

.btn-primary-v2:active:not(:disabled) {
    transform: translateY(0);
}

.btn-block-v2 {
    width: 100%;
}

.btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 辅助链接 */
.login-aux {
    margin-top: 20px;
    text-align: center;
}

.aux-link {
    font-size: 13px;
    color: #6B7280;
    text-decoration: none;
    transition: color 0.2s;
}

.aux-link:hover {
    color: #1A6DF5;
}

/* 底部 */
.login-footer-v2 {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    text-align: center;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .brand-bar {
        padding: 16px 20px;
    }
    
    .brand-name {
        font-size: 16px;
    }
    
    .brand-sub {
        font-size: 9px;
    }
    
    .login-stage {
        min-height: calc(100vh - 76px);
        padding: 20px 16px;
    }
    
    .login-card-v2 {
        padding: 32px 24px;
        border-radius: 16px;
    }
    
    .login-title {
        font-size: 22px;
    }
    
    .form-input-v2 {
        height: 46px;
        font-size: 14px;
    }
}

@media (max-width: 380px) {
    .login-card-v2 {
        padding: 24px 20px;
    }
    
    .brand-sub {
        display: none;
    }
}
