.auth-wrapper .authorize {
    display: none !important;
}

.auth-wrapper .authorize.custom {
    display: flex !important;
}
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.custom-modal.show {
    display: block;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.modal-content {
    position: relative;
    background: white;
    width: 90%;
    max-width: 400px;
    margin: 80px auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-button {
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-button:hover {
    background: #f5f5f5;
    color: #333;
}

.login-form {
    padding: 30px;
}

.login-form h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #666;
    margin: 10px 0 25px;
    font-size: 14px;
}

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

.login-form input {
    width: 100%;
    padding: 10px 12px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.login-form input:focus {
    outline: none;
    border-color: #4990e2;
    box-shadow: 0 0 0 3px rgba(73, 144, 226, 0.1);
}

.login-form input::placeholder {
    color: #999;
}

.login-form button {
    width: 100%;
    padding: 12px;
    background: #4990e2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}

.login-form button:hover {
    background: #357abd;
    transform: translateY(-1px);
}

.login-form button:disabled {
    background: #89b7eb;
    cursor: not-allowed;
    transform: none;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 500;
}

#login-error, #api-key-error {
    color: #e74c3c;
    margin-top: 15px;
    text-align: center;
    font-size: 13px;
    min-height: 20px;
}

/* Hide default swagger modal */
.dialog-ux {
    display: none !important;
}

/* API Key Button Styles */
.api-key-btn {
    position: relative;
    background-color: #6c757d;
    border: 2px solid #6c757d;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-left: 10px !important;
    padding: 5px 16px;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
}

.api-key-btn:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.api-key-btn.valid {
    background-color: #28a745;
    border-color: #28a745;
    padding-right: 30px;
}

.api-key-btn.valid::after {
    content: '✓';
    position: absolute;
    right: 10px;
    font-weight: bold;
}

.api-key-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Make sure the authorize button is visible */
.auth-wrapper {
    display: flex !important;
    align-items: center;
}
