/**
 * 登录页面样式
 */

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f0f0; /* fallback color */
}

/* 背景视频 */
.login-background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

/* 背景叠加层，增强文字可读性 */
.login-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* 黑色半透明叠加层，根据视频亮度调整透明度 */
    z-index: 1;
    pointer-events: none;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(10px) rotate(240deg);
    }
}

/* 顶部信息栏 */
.login-top-bar {
    position: relative;
    z-index: 10;
    padding: 25px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.company-name {
    font-size: 28px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.system-name {
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.login-container {
    flex: 1;
    width: 100%;
    max-width: 400px;
    padding: 20px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.login-box {
    background: transparent;
    border-radius: 16px;
    padding: 40px 35px;
    box-shadow: none;
    width: 100%;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 50px;
}

.login-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 20px;
    box-shadow: 0 12px 24px rgba(79, 172, 254, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 12px 24px rgba(79, 172, 254, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 16px 32px rgba(79, 172, 254, 0.4);
    }
}

.login-icon svg {
    width: 42px;
    height: 42px;
    color: white;
}

.login-header h1 {
    font-size: 32px;
    color: #1a237e;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login-header p {
    color: #64b5f6;
    font-size: 16px;
    font-weight: 500;
}

.login-form {
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 30px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e3f2fd;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #fafbfc;
    color: #2c3e50;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-group input:focus {
    outline: none;
    border-color: #4facfe;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: #90caf9;
    font-weight: 400;
}

.form-group input:hover {
    border-color: #90caf9;
    background-color: white;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(79, 172, 254, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
}

.btn-block {
    width: 100%;
}

.alert {
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background-color: #ffebee;
    color: #c62828;
    border: 2px solid #ef9a9a;
}

.login-footer {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid #e3f2fd;
    color: #64b5f6;
    font-size: 14px;
    font-weight: 500;
}

.login-footer p {
    margin: 0;
    line-height: 1.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-top-bar {
        padding: 20px 30px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .company-name {
        font-size: 24px;
    }
    
    .system-name {
        font-size: 18px;
    }
    
    .login-container {
        padding: 20px;
    }
    
    .login-box {
        padding: 35px 30px;
    }
    
    .login-header h1 {
        font-size: 28px;
    }
    
    .login-icon {
        width: 70px;
        height: 70px;
    }
    
    .login-icon svg {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 480px) {
    .login-top-bar {
        padding: 15px 20px;
    }
    
    .company-name {
        font-size: 22px;
    }
    
    .system-name {
        font-size: 16px;
    }
    
    .login-box {
        padding: 30px 25px;
        border-radius: 16px;
    }
    
    .login-header {
        margin-bottom: 40px;
    }
    
    .login-header h1 {
        font-size: 26px;
    }
    
    .login-icon {
        width: 64px;
        height: 64px;
    }
    
    .login-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .form-group input {
        padding: 14px 18px;
        font-size: 15px;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .login-footer {
        padding-top: 25px;
        font-size: 13px;
    }
}
