/* logon.css - 修复版登录页面样式 */

:root {
    --primary-color: #ff4757;
    --secondary-color: #57606f;
    --bg-color: rgba(255, 255, 255, 0.9);
    --text-color: #2f3542;
    --border-radius: 15px;
    --blue-btn-color: #3498db;
    --blue-btn-hover: #2980b9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    background: var(--bg-color);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    padding: 30px;
    margin: 20px 0;
}

h1 {
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
    font-size: 24px;
}

.card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card form {
    padding: 0 10px;
}

.error-message {
    color: #ff4757;
    background: #fdedec;
    padding: 12px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.success-message {
    color: #2ed573;
    background: #e8f9f0;
    padding: 12px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 标签页样式 */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    font-weight: 600;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    transition: border 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 71, 87, 0.2);
}

.btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    margin: 10px 0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn:hover {
    background: #ff6b81;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
}

/* 提交者冲突对话框样式 */
.submitter-conflict-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.submitter-conflict-dialog.active {
    opacity: 1;
    pointer-events: all;
}

.submitter-confirm-content {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.submitter-confirm-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #e74c3c;
}

.submitter-confirm-message {
    margin-bottom: 20px;
    line-height: 1.5;
}

.submitter-confirm-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.submitter-confirm-btn {
    padding: 8px 15px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.submitter-confirm-btn-cancel {
    background-color: #ecf0f1;
    color: #7f8c8d;
}

.submitter-confirm-btn-ok {
    background-color: #e74c3c;
    color: white;
}

.submitter-confirm-btn-cancel:hover {
    background-color: #bdc3c7;
}

.submitter-confirm-btn-ok:hover {
    background-color: #c0392b;
}

/* 响应式设计 - 移动设备适配 */
@media (max-width: 768px) {
    body {
        padding: 10px;
        align-items: flex-start;
    }
    
    .container {
        padding: 20px 15px;
        max-width: 100%;
        margin: 10px 0;
        border-radius: 10px;
    }
    
    h1 {
        font-size: 22px;
    }
    
    .card {
        padding: 15px;
    }
    
    .btn {
        padding: 12px;
        font-size: 15px;
    }
    
    .tab {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .form-control {
        padding: 10px 12px;
    }

    .submitter-confirm-content {
        padding: 15px;
    }
}

/* 小屏幕手机特别适配 */
@media (max-width: 480px) {
    .container {
        padding: 15px 10px;
    }
    
    h1 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .btn {
        font-size: 14px;
        padding: 10px;
    }
    
    .tab {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab {
        flex: 1;
        min-width: 33.33%;
        text-align: center;
        justify-content: center;
    }

    .submitter-confirm-title {
        font-size: 16px;
    }

    .submitter-confirm-message {
        font-size: 14px;
    }

    .submitter-confirm-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
}
