﻿/* 任免表授权申请弹窗 — 对齐 auth.html 原版尺寸 */

.auth-apply-modal .layer-content {
    position: relative;
    width: 1100px !important;
    max-width: calc(100vw - 32px);
    height: auto !important;
    padding: 0 !important;
    border-radius: 12px;
    overflow: visible;
}

.auth-apply-modal .popup-body {
    padding: 20px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}

.auth-apply-close {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    color: #64748b;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.auth-apply-close:hover {
    color: #334155;
    background: #ffffff;
}

.auth-apply-top {
    display: flex;
    align-items: stretch;
    gap: 10px;
    height: 60px;
    margin-top: 25px;
    margin-bottom: 30px;
    color: #ffffff;
    font-size: 24px;
}

.auth-apply-top-title {
    flex: 1;
    min-width: 0;
    height: 60px;
    line-height: 60px;
    padding: 0 20px;
    border-radius: 12px;
    background: linear-gradient(90deg, #3370ff 0%, #458bfd 100%);
    color: #ffffff;
    font-size: 24px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-apply-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    width: 250px;
    height: 60px;
    padding: 0 16px;
    border: none;
    border-radius: 12px;
    background: #458bfd;
    color: #ffffff;
    font-size: 24px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-apply-download-btn:hover {
    background: #2860e0;
}

.auth-apply-form {
    font-family: Arial, sans-serif;
}

.auth-apply-field {
    margin-bottom: 15px;
}

.auth-apply-field label,
.auth-code-toolbar label {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: bold;
    color: #333333;
}

.auth-apply-field .required,
.auth-code-toolbar .required {
    color: #ff0000;
}

.auth-apply-field input,
.auth-apply-form input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
    color: #333333;
    background: #ffffff;
}

.auth-apply-field input:focus {
    border-color: #409eff;
}

.auth-apply-field-row {
    display: flex;
    gap: 4%;
    margin-bottom: 0;
}

.auth-apply-field--half {
    width: 48%;
    flex-shrink: 0;
}

.auth-code-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 5px;
}

.auth-code-toolbar label {
    margin: 0;
    display: inline;
}

.auth-mode-link {
    border: none;
    background: none;
    color: #409eff;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
}

.auth-mode-link:hover {
    color: #66b1ff;
    text-decoration: underline;
}

.auth-file-row {
    display: flex;
    align-items: center;
}

.auth-file-row input[type="file"] {
    font-size: 14px;
}

.auth-file-name {
    margin-top: 6px;
    font-size: 14px;
    color: #666666;
    min-height: 18px;
}

.auth-apply-actions {
    display: flex;
    justify-content: center;
    margin: 10px auto 0;
    width: 90px;
}

.auth-apply-submit-btn {
    width: 100%;
    background-color: #66b1ff;
    color: #ffffff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.2s;
}

.auth-apply-submit-btn:hover {
    background-color: #409eff;
}

.auth-apply-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}



/* Element UI Message — 对齐 auth.html $message */
.auth-apply-message-wrap {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 4000;
    pointer-events: none;
    display: flex;
    justify-content: center;
}

.auth-apply-message {
    display: flex;
    align-items: center;
    min-width: 380px;
    max-width: calc(100vw - 40px);
    padding: 15px 15px 15px 20px;
    border-radius: 4px;
    border: 1px solid #ebeef5;
    background: #fef0f0;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(-16px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: auto;
}

.auth-apply-message-show {
    opacity: 1;
    transform: translateY(0);
}

.auth-apply-message-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-right: 10px;
    font-size: 14px;
    font-weight: bold;
    line-height: 16px;
    text-align: center;
    color: #f56c6c;
}

.auth-apply-message-content {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #606266;
}

.auth-apply-message--success {
    background-color: #f0f9eb;
    border-color: #e1f3d8;
}

.auth-apply-message--success .auth-apply-message-icon {
    color: #67c23a;
}

.auth-apply-message--error {
    background-color: #fef0f0;
    border-color: #fde2e2;
}

/* Element UI Alert — 对齐 auth.html $alert */
.auth-apply-alert-overlay {
    position: fixed;
    inset: 0;
    z-index: 4100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.2s;
}

.auth-apply-alert-show {
    opacity: 1;
}

.auth-apply-alert {
    width: 420px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 4px;
    border: 1px solid #ebeef5;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auth-apply-alert-header {
    padding: 15px 15px 10px;
    font-size: 18px;
    font-weight: 500;
    color: #303133;
}

.auth-apply-alert-body {
    padding: 10px 15px 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #606266;
    word-break: break-word;
}

.auth-apply-alert-footer {
    padding: 5px 15px 15px;
    text-align: right;
}

.auth-apply-alert-btn {
    min-width: 80px;
    padding: 9px 15px;
    border: 1px solid #409eff;
    border-radius: 4px;
    background: #409eff;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.auth-apply-alert-btn:hover {
    background: #66b1ff;
    border-color: #66b1ff;
}
