
.mask {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to right, rgba(49, 46, 129, 0.8), rgba(49, 46, 129, 0.3), transparent);
}

.btn-red:disabled, .btn-red.disabled {
    background-color: #e21227 !important;
    color: #fff !important;
    opacity: 0.65;
}

body {
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding: 0;
}

.leica-logo {
    height: 60px;
}

.form-container {
    max-width: 420px;
    width: 100%;
    margin: 0;
}

.form-control {
    border-radius: 10px;
    background-color: #f0f6ff;
    border: 1px solid #ccc;
}

.form-label {
    font-weight: 600;
}

.form-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 30px 0 20px;
}

.btn-red {
    background-color: #e21227;
    color: white;
    border-radius: 4px;
    font-weight: 500;
}

.btn-red:hover {
    background-color: #be0f20;
}

.btn-outline-red {
    border: 2px solid #e21227;
    color: #e21227;
    border-radius: 4px;
    font-weight: 500;
}

.btn-outline-red:hover {
    background-color: #e21227;
    color: white;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #aaa;
    margin: 20px 0;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.divider::before {
    margin-right: 0.5em;
}

.divider::after {
    margin-left: 0.5em;
}

.form-text a {
    color: #e21227;
    text-decoration: underline;
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 72%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #555;
}

.forgot-password {
    font-size: 0.9rem;
    text-align: right;
    color: #e21227;
}

.login-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 767.98px) {
    .login-image {
        display: none;
    }
}

.alert {
    padding: 1rem 1.25rem !important;
    border-radius: 0.375rem !important;
    border: 1px solid transparent !important;
    margin-bottom: 1rem !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    display: block !important;
    background-color: #f8d7da !important; /* 默认背景色 */
    color: #842029 !important;
    text-align: center !important; /* 新增：让文字居中 */
}