/* 统一登录页面样式 - 提取自原云箱单登录页 */

/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url(/images/loginzxdb/banner.JPG);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow-x: hidden;
}

/* 主容器 */
.docEx-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.1); /* 轻微遮罩确保文字可读性 */
}

/* 登录框 */
.docEx-login-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

/* Logo区域 */
.docEx-logo {
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.docEx-logo h1 {
    color: #333;
    font-size: 28px;
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.docEx-logo p {
    color: #666;
    margin: 10px 0 0 0;
    font-size: 14px;
}

/* 登录方式切换标签 */
.docEx-login-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid #e1e5e9;
    position: relative;
}

.docEx-login-tab {
    flex: 1;
    padding: 12px 0;
    text-align: center;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    outline: none;
}

.docEx-login-tab:hover {
    color: #0e9af4;
}

.docEx-login-tab.active {
    color: #0e9af4;
    font-weight: 600;
}

.docEx-tab-indicator {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50%;
    height: 2px;
    background: #0e9af4;
    transition: left 0.3s ease;
}

.docEx-login-tab-content {
    display: none;
}

.docEx-login-tab-content.active {
    display: block;
    animation: fadeInTab 0.3s ease;
}

/* 表单组 */
.docEx-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.docEx-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

/* 输入框 */
.docEx-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.docEx-input:focus {
    outline: none;
    border-color: #58b2eb;
}

/* 验证码输入框容器 */
.docEx-code-group {
    position: relative;
}

.docEx-code-input-wrapper {
    display: flex;
    gap: 10px;
}

.docEx-code-input-wrapper .docEx-input {
    flex: 1;
}

.docEx-get-code-btn {
    padding: 12px 16px;
    background: #0e9af4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s ease;
    min-width: 110px;
}

.docEx-get-code-btn:hover:not(:disabled) {
    background: #0d8ae0;
}

.docEx-get-code-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 手机号登录提示 */
.docEx-phone-tip {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
    text-align: left;
}

/* 消息容器 */
.message-container {
    min-height: 30px;
    margin-bottom: 10px;
}

/* 错误提示 */
.docEx-error {
    color: #f44336;
    font-size: 14px;
    margin-top: 10px;
    text-align: left;
    display: none;
    padding: 5px 0;
}

.docEx-success {
    color: #4caf50;
    font-size: 14px;
    margin-top: 10px;
    text-align: left;
    display: none;
    padding: 5px 0;
}

/* 登录按钮 */
.docEx-login-btn {
    width: 100%;
    padding: 14px;
    background: #0e9af4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.docEx-login-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 154, 244, 0.3);
}

.docEx-login-btn:active:not(:disabled) {
    transform: translateY(0);
}

.docEx-login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* 底部链接 */
.docEx-links {
    margin-top: 20px;
    font-size: 14px;
}

.docEx-links a {
    color: #667eea;
    text-decoration: none;
    margin: 0 10px;
    cursor: pointer;
}

.docEx-links a:hover {
    text-decoration: underline;
}

/* 页脚 */
.m-footer {
    text-align: center;
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    font-size: 12px;
    pointer-events: none;
}

.m-footer span {
    pointer-events: auto;
}

/* 模态弹窗样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    animation: fadeInOverlay 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-container {
    background: white;
    border-radius: 5px;
    width: 90%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    position: relative;
}

/* 大尺寸弹窗 - 用于注册 */
.modal-large {
    max-width: 600px;
    height: 95vh;
    max-height: 762px;
}

/* 中等尺寸弹窗 - 用于忘记密码 */
.modal-medium {
    max-width: 1000px;
    height: 75vh;
    max-height: 550px;
}

.modal-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

.modal-body {
    flex: 1;
    overflow: hidden;
    padding: 0;
    border-radius: 0 0 5px 5px;
    background: #fff;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes spin { 
    to { transform: rotate(360deg); } 
}
