/* ========================================
   FINANCE LOGIN - THAT FACTORY 财务管理
   ======================================== */

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

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #F5F0EB;
}

/* 登录页容器 */
.finance-login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    background: linear-gradient(135deg, #F5F0EB 0%, #EDE6DE 100%);
}

.finance-login-container {
    width: 400px;
    max-width: 100%;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: 48px 40px 36px;
}

.finance-login-header {
    text-align: center;
    margin-bottom: 40px;
}

.finance-login-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.finance-login-header h1 {
    font-size: 20px;
    font-weight: 600;
    color: #1F2937;
    letter-spacing: 0.5px;
}

/* 表单字段 */
.finance-login-field {
    margin-bottom: 24px;
}

.finance-login-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.finance-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.finance-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 1;
}

.finance-input {
    width: 100%;
    height: 44px;
    padding: 0 44px 0 44px;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    font-size: 14px;
    color: #1F2937;
    background: #F9FAFB;
    transition: all 0.2s ease;
    outline: none;
}

.finance-input:focus {
    border-color: #5B7B6F;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(91, 123, 111, 0.1);
}

.finance-input::placeholder {
    color: #9CA3AF;
}

.finance-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    z-index: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.finance-password-toggle:hover {
    opacity: 1;
}

/* 登录按钮 */
.finance-login-btn {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 10px;
    background: #5B7B6F;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 2px;
}

.finance-login-btn:hover {
    background: #4A6B5F;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91, 123, 111, 0.25);
}

.finance-login-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.finance-login-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 按钮加载状态 */
.finance-btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.finance-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: finance-spin 0.6s linear infinite;
}

@keyframes finance-spin {
    to { transform: rotate(360deg); }
}

/* 错误提示 */
.finance-login-error {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    animation: finance-slideDown 0.3s ease;
}

@keyframes finance-slideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* 页脚 */
.finance-login-footer {
    text-align: center;
    margin-top: 32px;
}

.finance-login-footer p {
    font-size: 12px;
    color: #9CA3AF;
}

/* Layui 覆盖 */
.layui-form-checkbox[lay-skin="primary"] {
    padding-left: 0;
}

/* 自适应 */
@media (max-width: 480px) {
    .finance-login-container {
        padding: 36px 24px 28px;
    }
    .finance-login-header h1 {
        font-size: 18px;
    }
}
