body {
    height: 100vh;
    margin: 0;
    padding: 0;
    background: #f2f2f2;
    font-family: 'Microsoft YaHei', sans-serif;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.position-relative {
	position: relative !important;
}

.d-flex {
	display: flex !important;
}

.justify-content-between {
	justify-content: space-between !important;
}

.d-block {
	display: block !important;
}

.d-hide {
	display: none !important;
}

.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* 登录面板容器 - 使用指定图片背景 */
.login-panel-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10%;
    background-image: url('/style/passport/fore/img/logobg.png');
    /*background-size: cover;*/
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.login-panel {
    background: white;
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    color: #333;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* 面板顶部装饰条 */
.login-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.panel-header {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 10px;
}

/* 无圆圈边框的logo样式 */
.panel-header .logo {
    width: 20rem;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.panel-header .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.form-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    transition: color 0.3s ease;
}

.form-control {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #333;
    padding-left: 40px;
    height: 48px;
    transition: all 0.3s ease;
    font-size: 15px;
}

.form-control:focus {
    background: white;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    color: #333;
}

.form-control:focus + i {
    color: #3b82f6;
}

.form-control::placeholder {
    color: #9ca3af;
}

.btn-login {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: white;
    border: none;
    border-radius: 8px;
    height: 48px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-login:hover {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    color: white;
}

.form-options {
    display: flex;
    justify-content: end;
    align-items: center;
    margin-bottom: 20px;
}

.form-options a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.form-options a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.panel-switch {
	display: flex;
	justify-content: space-between;
    margin-top: 20px;
    color: #6b7280;
}

.panel-switch a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.panel-switch a:hover {
    color: #2563eb;
    text-decoration: underline;
}

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

.code-group .form-control {
    flex: 1;
}

.captcha-img {
    width: 96px;
    height: 48px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 3px;
    user-select: none;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.captcha-img:hover {
    border-color: #d1d5db;
}

.btn-code {
    background: #eff6ff;
    color: #3b82f6;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    height: 48px;
    padding: 0 15px;
    transition: all 0.3s ease;
    min-width: 96px;
    font-weight: 600;
}

.btn-code:hover:not(:disabled) {
    background: #dbeafe;
    border-color: #bfdbfe;
}

.btn-code:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #e5e7eb;
    cursor: not-allowed;
}

.form-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-group.has-error .form-control {
    border-color: #ef4444;
}

.form-group.has-error .form-error {
    display: block;
}

.form-group.has-error i {
    color: #ef4444;
}

.password-panel {
    display: block;
}

.phone-panel {
    display: none;
}

.panel-transition {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    background: #f2f2f2;
    color: #1f2b58;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid #e5e7eb;
}

footer a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-panel-container {
        justify-content: center;
        padding: 5%;
    }
    
    .login-panel {
        max-width: 100%;
        margin: 20px 0;
    }
}